Ra

Railway – Deploy Rails to AWS with Ansible

Hacker News

Railway – Deploy Rails to AWS with Ansible

At the start of the year I decided it was time to move my company's app from Heroku to AWS. Main reason was that our clients were on South America, where Heroku does not have a datacenter. At the time I did not find a guide on how to do this, so I had to spend an entire week (~40 hours), learning about AWS and Ansible, and feeling like I was continuously banging my head against a wall. Fast forward a few months, and we have an entire repository of playbooks that can, with a single command, do most of the things that Heroku did for us. So I decided it might be worth to open source the entire thing, if only to save others some of the frustration I felt. I named the project "Railway"and here's what you get: 1 - Create a custom AMI with everything a Rails app need; 2 - Create a staging environment with webservers, workers, cache and job redis instances, postgres database and support for up to 9 branches of your app at the same time; 3 - Create a production environment with load balanced webservers, workers, cache and job redis instances, postgres database with a read replica; 4 - Deploy to staging; 5 - Deploy to production using rolling restarts; 6 - Update production servers to get the latest security updates; 7 - Upgrade production servers to a new AMI with zero downtime; 8 - Compile ImageMagick and Libvips from source in order to get more up to date versions than what is available in Ubuntu's repositories. As you can imagine this is not an easy project to use. That’s why I included guides for instaling, running everything for the first time, customizing for your own app and the day to day workflow. I hope this is useful for people who have considered moving from a PaaS to a IaaS before, but didn’t know where to start. Link: https://github.com/FestaLab/railway

Share card

Actual performance

2points
2comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, single, using · Missing: mac, agents, macos
82%82% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: open source, ide, io · Missing: https docs, excited, just released
66%66% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: month, way · Missing: mobile apps, ios, personal
41%41% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
25%25% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
20%20% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

De
Deploy a Jenkins Cluster on AWS52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Deploy a Jenkins Cluster on AWS

Hacker News1
De
Deploy Jitsi on AWS in 5 Minutes59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Deploy Jitsi on AWS in 5 Minutes

Hacker News53
Cl
Cloudlvl – Generate and Deploy AWS Lambda with AI57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cloudlvl – Generate and Deploy AWS Lambda with AI

Hacker News1
De
Deploy Next.js to AWS76%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Deploy Next.js to AWS

Hacker News54
Pl
Platform to deploy from GitHub to AWS63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Platform to deploy from GitHub to AWS

Hacker News1
Te
Terraform AWS Starterkit47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Terraform AWS Starterkit

Hacker News2
AW
AWS Automator58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AWS Automator

Hacker News3
AW
AWS Inter Region VPC Peering39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AWS Inter Region VPC Peering

Hacker News1
AW
AWS Terminator58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AWS Terminator

Hacker News4
Cf
Cfer Is a Ruby DSL for AWS CloudFormation59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cfer Is a Ruby DSL for AWS CloudFormation

Hacker News2