mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
22 lines
415 B
Bash
Executable File
22 lines
415 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mkdir -p public/data
|
|
|
|
cat <<EOF > config/database.yml
|
|
test:
|
|
adapter: postgresql
|
|
host: '127.0.0.1'
|
|
port: 5432
|
|
username: postgres
|
|
password: postgres
|
|
database: moebooru_test
|
|
EOF
|
|
|
|
cat <<EOF > config/local_config.rb
|
|
CONFIG["server_host"] = "localhost"
|
|
CONFIG["admin_contact"] = "webmaster@#{CONFIG["server_host"]}"
|
|
CONFIG["memcache_servers"] = ["127.0.0.1:11211"]
|
|
EOF
|
|
|
|
bundle exec rails db:create
|