This puts a Rails project migrated from Ruby 2.6.1, Rails 5.2.4.3 and SQLite, to these versions and their dependencies in a Docker container that can run on AWS:
- Rails 7.0
- Ruby 3.1.2
- SQLite3
- Puma 5.6
The application is a view-only site. It does NOT use Rails scaffolding, i.e., does NOT include the standard CRUD actions.
-
Create an EC2 instance on AWS with an Ubuntu image and at least a t2.micro size.
-
Create a security rule for TCP to use port 48017 and use that with the instance.
-
Run:
main.sh
-
Go to a browser and see the running app. Use the IP address of the instance and port, e.g.,
http://54.190.12.61:48017
-
Clone the repo:
git clone [email protected]:kimlew/rails_see_stuff.git
-
Change to project directory with:
cd rails_see_stuff
-
Run:
docker compose up
-
Go to the browser address:
<http://localhost:48017/>