Closed weathertopper closed 7 years ago
^^That's old, this isn't https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/
btw use this to log back in as me (userwise) sudo -u railsappuser -H bash -l
^^or just restart the terminal that's better
bundle exec rake assets:precompile db:reset db:setup db:seed RAILS_ENV=development DISABLE_DATABASE_ENVIRONMENT_CHECK=1
^^wipes out prod db too, beware
then restart server
sudo apache2ctl restart
There are still lots of questions
But hey! Today was pretty productive!
Take secret file out of 'changed' in prod https://github.com/blog/2019-how-to-undo-almost-anything-with-git
run this for update
bundle install --deployment --without development test
bundle exec rake assets:precompile db:migrate RAILS_ENV=production
passenger-config restart-app $(pwd) //restarts server
Added this to a script in my prod directory so it's much easier now
I'm running an Apache server, I know there's a way to run it through that via some other tool. There might be a better way not involving the Apache server, I don't really care how this gets done. I just want to figure out how to get it done before I go much further.