How to restart a Ruby application

1 de noviembre, 2015 @ 00:13 — 0 comentariosDownload PDF

In this guide we explain two different methods to restart Ruby applications.

Restart from the Hosting Panel

1 - Access your Hosting Panel

Just follow instruccions of How to access your Hosting Panel.

2 - Click on Ruby Applications

Look for and click on Ruby Applications icon.


3 - Restart app

You will see a listing of all Ruby application configured in the current hosting account. Just locate the one you whish to restart and click on Reboot link.


Restart creating a restart.txt file

The secod method to restart an application is usually more convenient, as it only requires to create or update a file named restart.txt that must be located in the tmp folder of you Ruby application.

In other words: if your applications root folder is /home/username/ruby/myapp you must create or update the file /home/username/ruby/myapp/tmp/restart.txt

You can do so using SSH, FTP or other deployment utilities such as Capistrano. Just access your account using SSH and excecute:

cd /home/username/ruby/myapp
touch tmp/restart.txt