Deploying App on Intranet


#1

I am needing some help with deploying this meteor app I made onto our works INTRANET RedHat server. I bundled the app to make it a node app and installed node,npm,and mongodb onto the intranet server. When I go through setting up the environment variables with

export PORT=3000
export MONGO_URL=mongodb://localhost:27017/databasename
export ROOT_URL=http://localhost:3000
npm install
node bundle/main.js

I get a blank web page when I go to servername.dcn/timesheet. In Apache I set up a virtual host such as

< VirtualHost *:80>
ServerName servername.dcn
ProxyRequests Off
ProxyPreserveHost On
< Proxy *>
Order deny,allow
Allow from all
< /Proxy>
ProxyPass /timesheet http://localhost:3000/
< /VirtualHost>

Any ideas as to why I’m getting just a plain blank page instead of the app? Thanks for any advice.


#2

First thing would be to correct the ROOT_URL to what you’ll actually be using to access the app, i.e. http://servername.dcn/timesheet.
Then check if you can access the app at servername.dcn:3000 URL – using curl if the server has a firewall that prevents access to port 3000 from outside. If that works, then at least the Meteor app is already running properly. If not you have to check your deployment / startup.
If that part then works, then it’s your apache config. I’m deploying with nginx so cannot say about the specifics of configuring apache as reverse proxy here. Also check apache (error) logs (and/or configure if you haven’t already), you may find something in there as well.