Friday 21 August 2015

Setup EC2 instance and deploy using mina.

Amazon  EC2 :
System Update : - sudo apt-get update

===========RVM ============
sudo apt-get install curl
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
\curl -L https://get.rvm.io | bash -s stable
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc


Restart Required
type
rvm | head -n 1
rvm requirements
rvm install ruby-2.1.0 #... version of ruby used in your application
else rvm install 2.0.0
gem install bundler --no-ri --no-rdoc
sudo apt-get -y install curl git-core

============ rake===========
sudo apt-get install rake


==============Mysql===============
sudo apt-get update

sudo apt-get install mysql-server mysql-client


sudo apt-get install libmysqlclient-dev


==============Rmagick===============
sudo apt-get install imagemagick
sudo apt-get install libmagickwand-dev


==============Nokogiri===============
sudo apt-get install libxslt-dev libxml2-dev


=================Mina==========================
 Setup Mina for rails deployment Click
 For Nginx or unicorn configuration Click , this is tested application.

 Step 1: mina setup   #------ for setup all configuration file and for making all required directory.
Step 2: mina deploy on=production  #----on any environment 

Note: Make sure first your database configuration file will be correctly working.

 


No comments:

Salesforce CRM vs. Zoho: A Comparative Analysis

Introduction: Selecting the right customer relationship management (CRM) software is crucial for businesses seeking to streamline their sal...