- Launch an instance using the AMI identifier
ami-f56a739c, or by clicking here
- If you're a code.org security group member, you can choose your own public key
- This can run on a micro instance, but it will occasionally be sluggish to load pages. A medium instance runs it comfortably.
- Edit your EC2 instance's security group to allow access to ports 3000
git pullto update your code, and follow the Rails server setup instructions starting at step 6 in the main README- If you'd like to run your server as a daemon, start it with
bundle exec rails server -d
- You can restart it with:
kill `cat tmp/pids/server.pid`
If you'd like to set a custom subdomain for your staging server, you can do that using AWS Route 53.
Go to the Route 53 control panel, double-click a
Hosted Zone (e.g., code.org), and click Create Record Set. Fill in the following values:
- Type: CNAME
- Name:
your-dev-subdomain.learn.code.org. - Value: your EC2 subdomain, e.g.,
ec2-[ip-address].compute-1.amazonaws.com - All other fields can be left at their defaults