Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo gem install -v 1.9.0 liquid
- sudo gem install tzinfo
- if [ "${WC_DB_ENGINE}" == "mysql"; then
- echo "
- production:
- adapter: mysql
- database: ${WC_APP_NAME}
- username: ${WC_APP_NAME}
- password: ${WC_DB_PASSWORD}
- host: localhost
- encoding: utf8
- " > config/database.yml
- fi
- if [ "${WC_DB_ENGINE}" == "postgressql"; then
- echo "
- production:
- adapter: postgresql
- encoding: unicode
- database: ${WC_APP_NAME}
- pool: 5
- username: ${WC_APP_NAME}
- password: ${WC_DB_PASSWORD}
- host: localhost
- port: 5432
- " > config/database.yml
- fi
- rake db:bootstrap RAILS_ENV=production
- chown www-data log
Add Comment
Please, Sign In to add comment