Last active
April 5, 2023 14:43
-
-
Save DevGW/3c2621944b51db2aeba58cc4a932a0ba to your computer and use it in GitHub Desktop.
shell :: Updating/Upgradiing Ruby Version on Server #rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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