System Info
CentOS Linux release 7.0.1406 (Core)
3.7GB Memory
50GB diskspace
DUAL Core - Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
X86_64 - Architecture
Ref:
https://www.digitalocean.com/community/tutorials/how-to-use-capistrano-to-automate-deployments-getting-started
https://www.digitalocean.com/community/tutorials/how-to-setup-a-rails-4-app-with-apache-and-passenger-on-centos-6
Root access:
yum -y update
yum groupinstall -y 'development tools'
curl -L get.rvm.io | bash -s stable
-- didnt work; and suggested next step in error
>gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload
rvm get stable
rvm requirements
rvm reload
rvm install 2.1 #installed 2.1.5p273
rvm --default use 2.1.5
CONTINUE
https://www.rosehosting.com/blog/install-ruby-on-rails-with-apache-and-passenger-on-centos-6/
https://www.rosehosting.com/blog/install-ruby-on-rails-with-apache-and-passenger-on-centos-6/
install rvm for newuser
adduser newuser
passwd newuser
usermod -G wheel newuser #pick a fair name for new user
visudo #uncomment next line
#%wheel ALL=(ALL) NOPASSWD:ALL
vim /etc/ssh/sshd_config #add next line to avoid ssh access using new user name
DenyUsers newuser
service sshd restart
su - newuser
sudo yum -y update
sudo yum -y install curl curl-devel httpd-devel httpd mod_ssl
sudo curl -L get.rvm.io | bash -s stable
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
#then sudo curl -L get.rvm.io | bash -s stable
rvm get stable
rvm reload
rvm install 2.1.5
rvm use 2.1.5 --default
vim ~/.gemrc #put following lines to avoid lot of ri doc installations
---
:backtrace: false
:benchmark: false
:bulk_threshold: 1000
:sources:
- http://rubygems.org/
- http://gemcutter.org
:update_sources: true
:verbose: true
gem:
--no-document
--no-ri
--no-rdoc
gem install rails
gem install passenger
passenger-install-apache2-module #follow the suggestions
No comments:
Post a Comment