Production Quality Meteor Deployment to Anywhere
MIT License
Bot releases are visible (Hide)
Published by zodern about 7 years ago
Hooks
It is now possible to add hooks that run before or after commands. The new --show-hook-names
option shows all of the available hooks for a cli command while it is running. Hooks can be a command to run locally or on the servers, or a function.
Plugins
Plugins are npm packages that can add commands (commands can be run from the mup cli or by other plugins), hooks, and config validators. All of the included cli commands and task lists have been moved to plugins.
Changes to Deployment and Deployment validation
This is currently only enabled for the abernix/meteord
docker image.
After the bundle is uploaded to each server, a new task is run called "Prepare bundle". It installs the Meteor npm dependencies, rebuilds native modules, and stores the result in a docker image. This has a few benefits:
meteor.deployCheckWaitTime
no longer needs to include the time to install npm dependenciesmeteor.deployCheckWaitTime
expires, and running with --verbose
shows the full logs from npm install
mup start
, mup restart
, and mup reconfig
are all much faster.Improved Support for Multiple Servers
mup restart
restarts only one server at a time--servers
option to list which servers to usemeteor.servers.<server name>.env
Config Changes
meteor
object has been renamed to app
. The meteor
object will be supported until Mup 2.0mongo.port
and mongo.oplog
from your config since they have never been usedDocs
meteor.docker.imagePort
, mongo.port
, and mongo.oplog
from example configsmeteor.docker.imagePort
meteor.deployCheckWaitTime
Other Changes
http
to https
, configured with proxy.ssl.forceSSL
mup setup
updates Docker if it is older than 1.13mup proxy reconfig-shared
to update the server after changing proxy.shared
in the config.meteor.deployCheckWaitTime
, meteor.docker.imagePort
, and mongo.port
from default configmeteor
object in the default config to app
server.pem
is a path to a public keyapp.name
has a periodproxy.shared.clientUploadLimit
meteor build
failsmup meteor restart
commandmup mongo dump
command since it did nothingPublished by zodern over 7 years ago
mup setup
restarting dockerPublished by zodern over 7 years ago
Deployment verifier no longer requires the HTTP status code to be 200.
Published by zodern over 7 years ago
proxy
object instead of using meteor.ssl
and meteor.nginx
mup proxy
command. For a list of subcommands, run mup proxy help
meteor.ssl
since the previous image used for custom certificates had a security vulnerability.Big thanks to @shaiamir for his work on the shared proxy.
mup stop
also stops nginx proxy and let's encrypt containersdocker.imagePort
. The app is still accessible on env.PORT
.--cached-build
flag is setzodern:mup-helpers
package. Since version 1.2.7, verifying deployment fails if the app's /
route's http code is other than 200, or if it does not redirect on the server to a page that does have that http code. Adding zodern:mup-helpers
allows meteor up to sucessfully validate the deployment.Published by zodern over 7 years ago
Published by zodern over 7 years ago
mup docker restart
commandmup docker ps
command. It accepts all arguments that docker ps
accepts--verbose
flag also shows output from scripts run on the serverStart Mongo
and Stop Mongo
task listsROOT_URL
force-ssl
without ssl setupmeteor.ssl.upload
@markreidPublished by zodern over 7 years ago
mup init
and mup setup
suggests what to do nextmup reconfig
--cached-build
flag to mup deploy
which uses the build from the previous deploy--verbose
flag to show output from meteor build
Published by zodern over 7 years ago
Published by zodern over 7 years ago
10M
(@shadowcodex)host
in confighttp://
or https://
in ROOT_URL
mup
on WindowsPublished by zodern over 7 years ago
Published by zodern over 7 years ago
mup.js
and displays problems found in ituploadProgressBar
is part of default mup.js
Error: Cannot find module 'ssh2'
mup logs
when using custom configuration or settings filesPublished by zodern over 7 years ago
Published by madushan1000 about 8 years ago
Published by madushan1000 about 8 years ago
Published by madushan1000 about 8 years ago
Published by madushan1000 about 8 years ago