Ruby Application Hosting with Sinatra

Asked

Viewed 50 times

0

I’m starting my Ruby studies with DSL Sinatra. For this I installed Node.js then ruby with Sinatra.

My applications locally are working normally. However, I would like to make them available for web consultation. (so you can call anywhere).

Would anyone have a first-step manual? This type of application is possible to leave them on shared web servers ? (Hosting of websites with Cpanel) ?

Thank you and Success!

2 answers

0

The Heroku is the simplest to resolve in the short term.

If you’re looking for a more robust solution that can be even cheaper than Heroku, look for the Google Cloud Platform App Engine with CI/CD solutions using a tool like Codeship or Travis.

Has a specific Google guide for Rails applications, see.

For the database, if you use Postgresql or Mysql, I recommend Cloud SQL on the same infrastructure. It also has a complete guide to integrate with Google Cloud Platform.

Much is said about Amazon Web Services, where you will find a good service, but that can give you self-scale headaches. There are comparisons between Heroku and AWS that can give you a better north.

0


  • Anderson, thank you for your help. I did all the procedures to get the application up. But how do I get it up? I used the command "ruby system.Rb -p8081 -e Production" However by Heroku the page does not answer. I would have some suggestion ?

  • If you’ve followed all the steps, you don’t need to run the application, Heroku will automatically start the application when you run the "git push Heroku master" command, as described here: https://devcenter.heroku.com/articles/getting-started-with-ruby#deploy-the-app

Browser other questions tagged

You are not signed in. Login or sign up in order to post.