awsruby

Get started with Ruby

To get started, we suggest the following steps:

Step 1: Create a new Rails application

To create a new Rails application, initialize a new project as below. Remember to replace the APPNAME placeholder with the actual name of your project.

$ rails new APPNAME

For more information, refer to these instructions.

Step 2: Install gems

You might need to install gems for your project. You can do this easily with the gem install command. For example, run the following command to install Rake:

$ sudo gem install rake

For more information, refer to these instructions.

Step 3: Deploy your Rails application

To deploy your application, start the Rails server by running the following command:

$ bundle exec rails s

This will start the Rails server for your application on port 3000. Find more information about how to access the application using your Web browser.

For a production environment, we recommend configuring Apache or Nginx with Passenger before starting to serve your application. For more information, refer to these instructions.