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:
2. Change directories to the home directory:
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):
4. Create the new Rails app with the MySQL database configuration specified:
5. After the Rails app creation process finishes, change directories into the the new app's directory:
Previous post: Installing Passenger
Next post: Create a git repository for the app
1. In Terminal, connect to the VPS as the single user if you are not already connected:
$ ssh username@example.com2. Change directories to the home directory:
# cd /home/username3. 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 www4. Create the new Rails app with the MySQL database configuration specified:
# rails new test-app -d mysql5. After the Rails app creation process finishes, change directories into the the new app's directory:
# cd test-appPrevious post: Installing Passenger
Next post: Create a git repository for the app
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