Gottwik / Enduro

Minimalistic, lean & mean, node.js cms
http://www.endurojs.com/
MIT License
690 stars 121 forks source link

Enduro js Deployment Node.js hosting #317

Closed JHNBOS closed 5 years ago

JHNBOS commented 5 years ago

Hi,

I currently have used Enduro js for a client, to quicly create a website for them. Now I am trying to deploy my project onto a Node.js hosting, but I am getting stuck.

The control panel requires some information, which I do not know what to enter. The field "application root" is the folder in which I put the project in. I do not know what to put in the field "Application Startup File".

Help would be much appreciated!

Thanks for your help in regard.

Update

I know understand that in a normal Node.sjs project, the "Application Startup File" would be either a server.js or index.js file. I tried to enter "app/app.js" inside this field, but it wont work.

The hosting I am using, makes use of Phusion Passenger for Node.js apps. It includes the following settings:

DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION BEGIN PassengerAppRoot "/home/balloons/node-app" ==> directory of project PassengerBaseURI "/node" ==> URL PassengerNodejs "/home/balloons/nodevenv/node-app/11/bin/node" ==> Node install PassengerAppType node PassengerStartupFile app.js DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION END

I am a bit lost at this point. It is really important for my client that they have the admin functionallities. When using the static files, it does work, but then I don't have any admin functionallities.

Aantekening 2019-03-21 193640

JHNBOS commented 5 years ago

I eventually managed to get it working.

It involved running enduro on a higher port, say 8000, via enduro start --port=8000. Next, I had to change my .htaccess file, to redirect from port 8000 to port 80.

RewriteEngine On RewriteRule ^$ http://domain:port/ [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ http://domain:port/$1 [P,L]