meteor deploy command, which should magically close all application deployment needs. But not closed.meteor deploy only works if you use Galaxy cloud solution (from $ 0.035 per hour) or free hosting on Meteor.com (which is already closing on March 25). curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash - apt-get install nodejs apt-get install mongodb-server npm install -g forever apt-get install phantomjs meteor build --architecture os.linux.x86_64 scp /tmp/meteor.tar.gz sashagrey:/home/meteor tar -xf meteor.tar.gz cd /home/meteor/bundle/programs/server && npm install export PORT=80 export MONGO_URL=mongodb://localhost:27017/meteor export ROOT_URL=http://example.com forever start /home/meteor/bundle/main.js meteor folder inside the project. In package.json, I add a script that performs all the steps described above and runs the application on the server (it is assumed that you can access your server with the ssh sashagrey ). { "scripts": { "deploy": "cd meteor && meteor build /tmp --architecture os.linux.x86_64 && scp /tmp/meteor.tar.gz sashagrey:/home/meteor && rm /tmp/meteor.tar.gz && ssh sashagrey 'forever stopall && cd /home/meteor && tar -xf meteor.tar.gz && rm meteor.tar.gz && cd /home/meteor/bundle/programs/server && npm install && export PORT=80 && export MONGO_URL=mongodb://localhost:27017/meteor && export ROOT_URL=http://example.com && forever start /home/meteor/bundle/main.js'", } } npm run deploy Source: https://habr.com/ru/post/279103/
All Articles