Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Meteor Up (mup for short) is a command line tool that allows you to deploy any meteor app into your own server. It supports Ubuntu 12.04 or higher servers from any Cloud Infrastructure Provider.
Table of Contents
settings.json
npm install -g mup
If you are looking for password based authentication, you need to install sshpass on your local development machine.
mkdir ~/my-meteor-deployment
cd ~/my-meteor-deployment
mup init
This will create two files in your Meteor Up project directory, which are:
mup.json
is commented and easy to follow (it supports JavaScript comments)
{
//server authentication info
"servers": [
{
"host": "123.456.789.012",
"username": "root",
"password": "x7fj29dhs0"
//or pem file (ssh based authentication)
//"pem": "~/.ssh/id_rsa"
}
],
//install MongoDB in the server
"setupMongo": false,
//install Nodejs in the server
//WARNING: Nodejs is required! Only skip if you already have nodejs installed on server.
"setupNode": true,
//install PhantomJS in the server
"setupPhantom": true,
//location of app (local directory)
"app": "/Users/arunoda/Meteor/my-app",
//configure environmental
"env": {
"PORT": 80,
"ROOT_URL": "http://myapp.com",
"MONGO_URL": "mongodb://arunoda:fd8dsjsfh7@hanso.mongohq.com:10023/MyApp",
"MAIL_URL": "smtp://postmaster%40myapp.mailgun.org:adj87sjhd7s@smtp.mailgun.org:587/"
},
//meteor-up checks if the app comes online just after the deployment
//before mup checks that, it will wait for no. of seconds configured below
"deployCheckWaitTime": 15
}
mup setup
This will setup the server for the mup deployments. It will take around 2-5 minutes depending on the server's performance and network availability.
This is how Meteor Up will configure the server for you. This information will help you to customize server for your needs.
/opt/meteor/app
/etc/init/meteor.conf
start meteor
and stop meteor
/var/log/upstart/app.log
mongo
is the name of the databaseFor more information see lib/taskLists.js
.
mup deploy
This will bundle the meteor project and deploy it to the server.
Meteor-Up checks for if the deployment is successful or not just after the deployment. By default, it will wait 10 seconds before the check. You can configure the wait time with deployCheckWaitTime
option in the mup.json
You can use an array to deploy to multiple servers at once.
To deploy to different environments (e.g. staging, production, etc.), use separate Meteor Up configurations in separate directories, with each directory containing separate mup.json
and settings.json
files, and the mup.json
files' app
field pointing back to your app's local directory.
Sometime, you might be using Meteor from a git checkout or using mrt
. By default Meteor Up uses meteor
. You can ask Meteor Up to use the correct binary with meteorBinary
option.
{
...
"meteorBinary": "~/bin/meteor/meteor"
...
}
mup logs -f
Mup can tail logs from the server and it supports all the options of tail
After you've edit environmental variables or settings.json, you can reconfigure the app without deploying again. Use following command for that.
mup reconfig
This will also restart the app, so you can use it for that purpose even if you didn't change the configuration file.
FAQs
Production Quality Meteor Deployments
The npm package mup receives a total of 941 weekly downloads. As such, mup popularity was classified as not popular.
We found that mup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.