Reputation: 6018
Scenario
My Question:
UPDATED
When I used mup, created folder ".deploy" in meteor project, I ran command "mup init", I edited mup.json, Then I ran command "mup setup". But it rather gave me an error like this;
D:\sample\.deploy>mup.cmd setup
Started TaskList: Setup Docker
[playandearn.in] - Setup Docker
[playandearn.in] x Setup Docker: FAILED
-----------------------------------STDERR-------------------------------
----
stdin: is not a tty
bash: line 7: docker: command not found
rm: cannot remove `/var/lib/dpkg/lock': No such file or directory
rm: cannot remove `/var/cache/apt/archives/lock': No such file or direct
ory
sudo: dpkg: command not found
sudo: apt-get: command not found
-----------------------------------STDOUT-------------------------------
----
------------------------------------------------------------------------
----
Upvotes: 0
Views: 226
Reputation: 1023
You can use zodern/meteor-up
Install mup(npm package)
Browse to project directory and run mup init
If you are on windows then use mup.cmd like mup.cmd setup
After preparing config file then
mup(.cmd) deploy
Upvotes: 1
Reputation: 161
What you are now doing is the incorrect way of deploying meteor. You don't really need to install meteor on your server, just on your developing machine.
No. It isn't the way to deploy meteor on a live server. And there are multiple ways of deploying a meteor application as given here. But for your use case, mup will be the easiest.
The simple installation is actually designed for development mode and not for a realtime production situation. As per the official guide, this mode watches source code files, exchanges data with package server and does a lot more than just running the app, leading to unnecessary computing resource wasting and security issues. While meteor up is specifically designed for production setup.
Upvotes: 1