title: How do i setup an Strapi App on a Phusion Passenger NodeJS environnement
body: <p>it's been more than a day and im stuck on this, please help!</p>
  <p>So : I have this hoster that use Phusion Passenger for the NodeJS environnement and i want to run my Strapi App on it.</p>
  <p>For now ive did the following :</p>
  <ol>
  <li>Strapi and the node modules are installed on the server</li>
  <li>The app is connected to the database</li>
  <li>the app.js can start fine</li>
  </ol>
  <p>The problem is here, i don't know how to configure my app.js file to make it launch Strapi</p>
  <p>i did something like this but im pretty sure this is wrong :</p>
  <pre><code>const http = require(&quot;http&quot;);
  const hostname = &quot;127.0.0.1&quot;;
  const port = &quot;passenger&quot;;
  const strapi = require(&quot;@strapi/strapi&quot;);
  
  const server = http.createServer((req, res) =&gt; {
    res.statusCode = 200;
    res.setHeader(&quot;Content-Type&quot;, &quot;text/plain&quot;);
    res.end(&quot;Hello World! NodeJS&quot;);
  });
  
  server.listen(port, hostname, () =&gt; {
    console.log(`Server running at https://somary.fr/`);
    strapi().start();
  });
  </code></pre>
  <p>How do i configure my app.js file to finally access my strapi app ?</p>