2016-08-20 03:50:54 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mkdir -p public/data
|
|
|
|
|
|
|
|
cat <<EOF > config/database.yml
|
|
|
|
test:
|
|
|
|
adapter: postgresql
|
2021-10-13 03:17:35 +09:00
|
|
|
host: '127.0.0.1'
|
2020-03-17 15:58:45 +00:00
|
|
|
port: 5432
|
2016-08-20 03:50:54 +09:00
|
|
|
username: postgres
|
2021-10-13 03:17:35 +09:00
|
|
|
password: postgres
|
2019-08-17 17:54:38 +09:00
|
|
|
database: moebooru_test
|
2016-08-20 03:50:54 +09:00
|
|
|
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
|