# set to home directory of the user Meteor will be running as export PWD=/home/vagrant export HOME=/home/vagrant # leave as 127.0.0.1 for security export BIND_IP=127.0.0.1 # the port nginx is proxying requests to export PORT=9000 # this allows Meteor to figure out correct IP address of visitors export HTTP_FORWARDED_COUNT=1 # MongoDB connection string using meteor as database name export MONGO_URL=mongodb://localhost:27017/chat # The domain name as configured previously as server_name in nginx export ROOT_URL=http://chat.haoduoshipin.com exec node /home/vagrant/chat/bundle/main.js >> /home/vagrant/chat/chat.log end script