Quantcast
Channel: Geek O Space » shell scripts
Viewing all articles
Browse latest Browse all 3

Ruby on rails rvm ree upstart ubuntu 12.04

$
0
0

After a very long time I did something which is worth putting it on my blog!!! Yes I was suppose to bring down the passenger app server and use unicorn instead of it and also make sure the unicorn starts automatically when the system boots up and restarts along with nginx web server.

Here is what I did!!!!

Step 1: Install the unicorn gem in the system. Using gem install unicorn. Make sure you dont use sudo to install the gem other wise you will end up in the deep shit!!!

Step 2: Add gem ‘unicorn’ in your gem file

Step 3: Run bundle install, make sure you use proper RVM version before you do it.

Step 4: Get the example file from the git-repo and copy the file to the config folder.

Step 5: Edit the unicorn file according to your needs.

Step 6: Install the nginx using sudo apt-get install nginx.

Step 7: Cop the nginx configuration file for unicorn from this link

Step 8: Edit the file according to the yo.u wish and restart the nginx once.

The next challenge is to set up the init.d script for the unicorn.

Here is the example of the script, change the path according to your  paths.

 

 

 

 


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images