All threads / How do I deploy my api rails 5.2 in AWS ec2?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I deploy my api rails 5.2 in AWS ec2?

CassianoSF asked in Rails

I'm following the tutorial: https://gorails.com/deploy/ubuntu/18.04#ruby

But I'm getting stuck on:
01 ArgumentError: Missing secret_key_base for 'production' environment, set this string with rails credentials:edit

How should I generate the key?
Where should I put it?
How to(key:xxxxxx or key=xxxxxxx ...)?

Please I'm in pain xP

Thank in advance

Well.! I will dive into the process and will see what I can do for the deployment of api with raw AWS EC2 server. Will get back to you with the proper answer. Till then you can try the managed version of AWS EC2 server which is powered by Cloudways. They have removed the complexities of AWS server and will let yyou enjoy the smooth experience of hosting.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,344+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.