Monday, June 13, 2016

Creating the new Rails app on the web server

The next step is to create the new Rails app.

1. In Terminal, connect to the VPS as the single user if you are not already connected:

$ ssh username@example.com

2. Change directories to the home directory:

# cd /home/username

3. Change directories into the public web directory (this might be "www" or "public_html", or as was in my case both exist with one pointing to the other):

# cd www

4. Create the new Rails app with the MySQL database configuration specified:

# rails new test-app -d mysql

5. After the Rails app creation process finishes, change directories into the the new app's directory:

# cd test-app


Previous post: Installing Passenger

Next post: Create a git repository for the app

1 comment:

  1. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. thank you sharing the information Ruby on Rails Online course hyderabad

    ReplyDelete