Blog platform
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
268 B

  1. #!/bin/bash
  2. set -e
  3. cd /home/app/pressr/
  4. #chown -R app:app /home/app/pressr/public/uploads #necessary?
  5. su app - -c "bundle exec rake assets:precompile"
  6. #create DB if DNE
  7. su app - -c "bundle exec rake db:create"
  8. su app - -c "bundle exec rake db:migrate"
  9. /sbin/my_init