Ruby on Rails Powered by GlobalSolutions
Ruby is a programming language. Rails is a web application development framework written in the Ruby language, designed to make programming web applications easier. Many web programming tasks such as generating HTML, routing URLs, and making data models are very easy with Rails.
We have removed all the hurdles in installing and configuring Ruby on Rails, making it easier for developers to focus on their Rails projects rather than spending time installing and configuring the stack on a Windows environment.
Accessing Your AMI from AWS Marketplace
To get started with your Ruby on Rails stack:
- Subscribe: Purchase the Ruby on Rails AMI from the AWS Marketplace.
- Connect via RDP:
- In the AWS Console, select your launched instance and click Connect.
- Choose RDP Client, upload your .pem key file, and decrypt the password using your private key.
- Download the .rdp file and connect using the username Administrator and the decrypted password.
Installation Paths and Versions
The Ruby on Rails stack is installed in standard Windows directories for easy access:
| Category | Version | Location |
|---|---|---|
| Ruby | 4.0.3-1 | C:\Ruby |
| Rails | 8.1.3 | — |
| SQLite | 3.53.1 | C:\sqlite |
| Notepad++ | 8.9.5 | C:\Program Files\Notepad++ |
Getting Started
Creating a New Application
- Open a command prompt and run
rails new YOUR_APPLICATION_NAME. This creates the application folder from where you ran the command. For example, runningrails new blogfromC:\will create ablogfolder with all required files underneath it. - After running the above step, the entire Rails directory structure with all the code required to run the application will be ready.
- From your new application's directory, run the command
rails serverto launch the server bundled with Ruby. - Now you can access your application through a web browser — point your browser to
http://localhost:3000where your Rails application will be running.
Sample Application
- We have created a sample application with a shortcut on the desktop. Click the command prompt shortcut icon on the desktop — it will take you to
C:\projects\my_app. From there, run the commandrails serverto launch the server bundled with Ruby. - To view the application in a browser, click the Sample Rails icon on the desktop or point your browser to
http://localhost:3000.
Making Your Application Accessible from the Web
- Allocate an Elastic IP in the AWS Console and associate it with your instance.
- If you have a domain name, go to the DNS settings and update the IP address to point to the Elastic IP.
- Bind the Elastic IP to the Rails server by running the following command in the command prompt:
C:\ruby_application\webapp> rails server --binding=Elastic_IP
- You can now access the application from outside using the domain name or Elastic IP:
http://Elastic_IP:3000http://domainname:3000
AWS Cost Optimizer — CloudInsider
Our other popular offering is the AWS Cost Optimizer aka CloudInsider, available in AWS Marketplace. This service has helped our customers save significantly on AWS and other cloud spending. It is easy to subscribe and you can see the savings in minutes.
▶ Watch Demo Video Subscribe on AWS Marketplace
Support
For any questions or assistance with our AWS Marketplace offering, reach out to us at support@theglobalsolutions.net.