Ruby on Rails on Azure Ubuntu Virtual Machines

I created one Ubuntu virtual machine on Azure windows to deploy my rails application. I use the following steps to access my application.

  • Running SSH for my xxx.cloudapp.net application
  • Providing the rails s command in my application directory.

I can view the application running on cloudy blue. But the problem is that the server stops every 10-15 minutes, and again I need to restart my server using rails s

Am I following the correct procedure or is there any other way to keep the server running continuously?

+4
source share
1 answer

I would not recommend running the built-in rails server in this environment, as it is intended only for your local development environment.

Since you are on Windows Azure, I would recommend you take a look at this tutorial from Azure People. It shows how to set up a nginx web server with a unicorn to host a Rails application.

http://www.windowsazure.com/en-us/develop/ruby/tutorials/web-app-with-capistrano/

+1
source

Source: https://habr.com/ru/post/1484991/


All Articles