Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8791637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:52:15+00:00 2026-06-13T22:52:15+00:00

I am new to ruby and I want to learn more about how it

  • 0

I am new to ruby and I want to learn more about how it works. So I have been testing a server configuration in a virtual machine to make quick Rails deployments.

I have RVM, Ruby, Rails, Git, Gitolite, PostgreSQL, Thin and Nginx running in an Ubuntu 10.04 environment.

Now I want to tie everything together. I got stuck, though, in the deployment process.

After I commit the project to the Git trunk, I want to hook a deployment action to put the application in the correct place, set to production, install the bundles, make the migrations and restart Nginx.

But I fail to find simple references on how it works. All I find in google are guides to use passenger, capistrano and others. I want to trigger the deployment on the git commit action, similar to heroku, but what would be the best tools to do that 100% server-side?

What about making some shell scripts? How do I deploy a project manually? What are the steps? Are there any guides out there that do not assume I know every details in Rails deployment?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:52:16+00:00Added an answer on June 13, 2026 at 10:52 pm

    Well, I managed to get it almost completely operational.

    The main actions I could trace until now are:

    • User pushes to trunk, must use git hooks to trigger the next steps using a script.

    The script must do the following:

    • Clone the project to the /var/www folder;
    • Insert the ‘thin’ gem into the Gemfile;
    • Run ‘bundle’ command in the application folder;
    • Precompile the assets in the application folder;
    • Migrate the database;
    • Stop nginx and thin;
    • Restart thin and nginx again.

    If the application is new, we must also:

    • Create a new user that matches the database information;
    • Create the production database;
    • Insert a new nginx configuration file;
    • Export the thin configuration from the application folder, like this:

    thin config -C /etc/thin/app.yml -c /var/www/app --servers 1 -e production

    The sequence of actions is more or less this:

    $ bundle package
    $ bundle install --deployment
    $ RAILS_ENV=production rake db:migrate
    $ rake assets:precompile
    $ thin start -C /etc/thin/app.yml
    

    This is the basic by now. I want to make it work 100% and then I want to post a guide on the Internet.

    Update

    The guide I said I would do:

    https://github.com/sentient06/RDH/wiki

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am relatively new to Grails, and want to learn more about how to
I'm new Ruby but been a .net dev for many a year. I want
I want to learn Ruby on Rails and have set up a test environment.
Good afternoon! I am pretty new to Ruby and want to code a basic
new on ruby and using windows xp and rails 3, i want to send
If I want to try out something new in Ruby or Javascript, I love
I'm new to Ruby, Regex and Stackoverflow. xD Here's my problem: I want to
Im new to ruby, wrote this code and works but i know is not
I am a new Ruby on Rails user and had a question. I have
I want to be able to do something like this in Ruby: (new[]{http://google.com, http://facebook.com,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.