Mercurial > zeropaste
comparison bin/run_test @ 437:d31fe32da7a0
Finish updating to rails 5
| author | nanaya <me@myconan.net> |
|---|---|
| date | Sat, 02 Jul 2016 17:04:25 +0900 |
| parents | 4f7fb63f0537 |
| children |
comparison
equal
deleted
inserted
replaced
| 436:72557a5310d9 | 437:d31fe32da7a0 |
|---|---|
| 17 if ! test -f config/local_config.rb; then | 17 if ! test -f config/local_config.rb; then |
| 18 # rake requires booting Rails which in turn requires availability of | 18 # rake requires booting Rails which in turn requires availability of |
| 19 # local_config. | 19 # local_config. |
| 20 touch config/local_config.rb | 20 touch config/local_config.rb |
| 21 cat << EOF > config/local_config.rb | 21 cat << EOF > config/local_config.rb |
| 22 CONFIG["standalone"] = true | 22 \$cfg[:standalone] = true |
| 23 CONFIG["secret_key"] = "$(bundle exec rake secret)" | 23 \$cfg[:secret_key] = "$(bundle exec rake secret)" |
| 24 EOF | 24 EOF |
| 25 fi | 25 fi |
| 26 | 26 |
| 27 RAILS_ENV=test bundle exec rake db:setup | 27 RAILS_ENV=test bundle exec rake db:setup |
| 28 bundle exec rake | 28 bundle exec rake |
