Skip to content

Instantly share code, notes, and snippets.

@DevGW
Last active April 5, 2023 14:43
Show Gist options
  • Save DevGW/3c2621944b51db2aeba58cc4a932a0ba to your computer and use it in GitHub Desktop.
Save DevGW/3c2621944b51db2aeba58cc4a932a0ba to your computer and use it in GitHub Desktop.
shell :: Updating/Upgradiing Ruby Version on Server #rails
rbenv install 2.x.x
rbenv local 2.x.x
# If you are other user Change to root user by typing:
exit
# Make sure path to ruby version is correct in site config file located:
cd /etc/httpd/sites/
nano sitename.com.conf # to correct the path
# restart httpd server
systemctl restart httpd
# then change back to user & site directory and:
./gitup.sh
./fixsite.rb
touch tmp/restart.txt
bundle install
# if you made any changes to db structure you'll have to run rake db:migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment