Browsing articles tagged with "init | Croc-Informatique.fr"
Jan
24
2017

Exemple de fichier /etc/init.d/ pour unicorn

Voici un exemple de configuration pour démarrer unicorn en mode service.   Les fichiers sont visible en raw ici Tout d’abord il faut créer le fichier config/unicorn.rb dans le répertoire de votre application ruby. Exemple : /opt/redmine/config/unicorn.rb Voici son contenu : # Set the current app’s path for later reference. Rails.root isn’t available at # this point, so we have to point up a directory. app_path = File.expand_path(File.dirname(__FILE__) + ‘/..’) # The number of worker […]