Nyxynyx
Nyxynyx

Reputation: 63619

Pushing changes to deployed Meteor.js app

After deploying a meteor.js app to my own server, what is the best practice to continue pushing code changes to the live app if I want to develop off the server?

Do you upload the newly edited file to the server via FTP and the page auto-reloads? Doing meteor bundle app.tgz, then uploading to server then untarring the package seems to be too slow and inefficient to me.

Upvotes: 2

Views: 715

Answers (1)

Tarang
Tarang

Reputation: 75945

Basically you have to do something that uploads the file, untar it, then restarts the node process.

As soon as it restarts the clients will refresh their pages.

If you find it inefficient and slow you could use a script to do it all for you such as https://github.com/netmute/meteor.sh

You could just edit the parameters in it to match your server.

Upvotes: 1

Related Questions