Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>According to the documentation for Passenger, you create a new vhost for each app you want to deploy. And point the site <code>root</code> at your apps public directory, and add the <code>passenger_enabled</code> directive. Exactly the same as deploying with Apache.</p> <pre><code>http { ... server { listen 80; server_name www.mycook.com; root /webapps/mycook/public; passenger_enabled on; } ... } </code></pre> <p>More here: <a href="http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_a_ror_app" rel="noreferrer">http://www.modrails.com/documentation/Users%20guide%20Nginx.html#deploying_a_ror_app</a></p> <p>In regards question 2. Restarting depends on what you are trying to do. I'm going to assume you're using a distro that uses <code>init.d</code></p> <p>These are 3 cases where you do a different kind of 'restart'.</p> <p>You have an issue with some config you have on Nginx. Or it's behaving strangely. So you would restart the Nginx service like this: <code>/etc/init.d/nginx restart</code></p> <p>The next case is you have a rails or sinatra app deployed on Nginx with the passenger module. And you want to make it reload some changes you just pushed to the server. Passenger watches the <code>tmp/restart.txt</code> file in your application. So by simply runnging <code>touch tmp/restart.txt</code>. While cd'd into the app's folder will tell Passenger to reload the application.</p> <p>And the last case for restarting/reloading is reload for Nginx. You use this when you add or change your VHOSTs. <code>/etc/init.d/nginx reload</code>. This allows you to reload your vhosts and other config without dropping connections.</p> <p>Have a gander at the Passenger Documentation, it is very thorough. <a href="http://www.modrails.com/documentation/Users%20guide%20Nginx.html" rel="noreferrer">nginx-passenger docs</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload