2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-23 02:17:32 +00:00
moebooru/script/travis_prepare

21 lines
387 B
Plaintext
Raw Normal View History

2016-08-20 03:50:54 +09:00
#!/bin/sh
mkdir -p public/data
cat <<EOF > config/database.yml
test:
adapter: postgresql
username: postgres
2019-08-17 17:44:04 +09:00
password:
2019-08-17 17:37:12 +09:00
database: travis_ci_test
2019-08-17 17:27:39 +09:00
port: 5433
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