Basic Ruby on Rails Deploy to EC2 Amazon Web Services

Business Marketing and IT Consultant | 41studio

1. Open AWS console page, choose EC2.

AWS Console Page

2. Go to key pairs menu and generate new key pair, it will downloaded on your PC.

Key Pair

3. Go to security group menu, create new security group and setting port range on inbound tab with 80.

Security Group

4. Go to instance menu and then choice Ubuntu for server, you can skip another step. When you click launch, you will choice to use which key pair.

With pen file, you can access your virtual server with this command:

$ ssh -i file.pem ubuntu@domainname

After logged in, you can install and configure apache passenger.

$ \curl -L | bash -s stable -> installing rvm

Configure RVM

source ~/.rvm/scripts/rvm
rvm use ruby --default
rvm install ruby
rvm use ruby --default
rvm ruby gems current

Install rails and other stuff.

gem install rails sudo apt-get install git-core sudo apt-get install apache2 sudo apt-get install mysql-server gem install…

View original post 164 more words