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.
 
 
 
 
 
 

11 lines
268 B

#!/bin/bash
set -e
cd /home/app/pressr/
#chown -R app:app /home/app/pressr/public/uploads #necessary?
su app - -c "bundle exec rake assets:precompile"
#create DB if DNE
su app - -c "bundle exec rake db:create"
su app - -c "bundle exec rake db:migrate"
/sbin/my_init