Created
June 6, 2016 07:27
-
-
Save rutvij-pandya/83be3bef7439a4ba4f2fbaf0aec155af to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# CentOS 6.5 | |
Install rvm | |
>> curl -L get.rvm.io | bash -s stable | |
>> \curl -sSL https://get.rvm.io | bash | |
>> source /etc/profile.d/rvm.sh | |
>> rvm reload | |
Install Ruby | |
>> rvm install 2.1.2 | |
>>rvm docs generate-ri ## generate documentation | |
Install NodeJS | |
>> sudo yum install epel-release | |
>> sudo yum install nodejs | |
>> Verify installation -> node -v | |
Install Bunder | |
>> gem install bundler | |
Install Gemset | |
>> Reference - click here | |
>> rvm gemset create foo | |
>> rvm gemset use foo | |
>> rvm --default use ruby-2.1.2@foo | |
>> rvm gemset list | |
Create Folder structure as per Capistrano #TODO | |
Copy codebase from github | |
>> Copy git ssh private key - id_rsa | |
>> Git clone repo | |
>> bundle install | |
Installation issue with Nokogiri 1.5 - libxml2 is missing | |
>> yum install libxslt-devel libxml2-devel | |
>> bundle config build.nokogiri --use-system-libraries | |
>> bundle install ## ensure to add passenger gem in gemfile | |
Install Nginx | |
>> Passenger-install-nginx-module | |
Issue - Less than 1024 MB RAM while configuring Nginx | |
>> sudo dd if=/dev/zero of=/swap bs=1M count=1024 | |
>> sudo mkswap /swap | |
>> sudo swapon /swap | |
Path - Please specify a prefix directory [/opt/nginx]: | |
>> /usr/share/nginx | |
Successful installation | |
Commands | |
>> sudo su ## switch to root user, if current user is not root | |
>> rm -rf folder_name | |
>> mkdir folder_name | |
>> mv app_root_dir 20160527184300 ## copy Folder1 content to Folder2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment