Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

members.hackadl.org - updating the app killed the server #16

Open
sighmon opened this issue Mar 23, 2018 · 1 comment
Open

members.hackadl.org - updating the app killed the server #16

sighmon opened this issue Mar 23, 2018 · 1 comment

Comments

@sighmon
Copy link
Member

sighmon commented Mar 23, 2018

What I did:

  • Updated the bundle on my dev machine: $ bundle update
  • Tested things locally and pushed: $ git push
  • Pulled on the server $ git pull
  • Updated .ruby-version to ruby-2.2.2
  • Updated the bundle: $ bundle update
  • Restarted the server $ touch tmp/restart.txt

What I expected:

  • The server to restart gracefully.

What happened:

  • The server gave a 500 error relating to Passenger.

What @thatpixguy and I did to get it running again:

  • I think the ruby version was hard coded into the Apache config.
  • Restart Apache.
  • Restart Passenger.
  • Cross fingers.
@thatpixguy
Copy link
Member

wrong path to rvm-ruby in ~/public_html/.htaccess:
PassengerRuby /home/ha-members/.rvm/wrappers/ruby-2.2.0@hackadl-member-website/ruby

so updated to 2.2.2

but, psyche! it turns out this isn't used, it actually uses the same config line from /etc/apache2/sites-enabled/ha-members.conf

updated it there

restarted apache

nope

restarted passenger (passenger-config restart-app)

nope

restarted apache again just to be sure

bingo.

so maybe needed to restart passenger first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants