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

Rethink deployment autostart script #553

Open
lislis opened this issue Jun 1, 2017 · 2 comments
Open

Rethink deployment autostart script #553

lislis opened this issue Jun 1, 2017 · 2 comments
Assignees

Comments

@lislis
Copy link
Member

lislis commented Jun 1, 2017

Read the previous issue here
We ran into issues with our current deployment setup, where our hosting provider switched to a new default Ruby version (2.4.1) while our app is still using 2.3.1.

This caused the deployment hook to fail (rather silently), but the app stayed up on an older version.

After updating the ruby and rails versions of our app and trying to redeploy, the app went down.
This was caused by the autostart script located in config/autostart that is not in version control and only lives on the production server. It contains an absolute path to the ruby binary, so it's bound to break when the next version update happens.

Question is, how can we improve this? Having the autostart script in git would be nice, but we'd need some magic to find the path to the current ruby binary

@til
Copy link
Member

til commented Jun 1, 2017 via email

@lislis lislis self-assigned this Jun 6, 2017
@lislis
Copy link
Member Author

lislis commented Apr 18, 2018

As a comment, the same thing happened this week when uberspace updated to Ruby 2.5.1 and the app was running 2.4.3.
It's all updated now but I should really get this done

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