0.1.8 • Published 8 years ago

@emgee/deploy v0.1.8

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

Deploy

This an internal Docker-based deploy script for Meteor applications.

Usage

Include a Dockerfile with which to publish.

Reads package.json for deploy settings.

$ npm install -g deploy
$ cd /path/to/meteor
$ deploy

Reverting

eval $(docker-machine env HOST)  # HOST is in package.json
docker images         # find the image id of the version you want to revert to
docker ps -a          # note down the image name of the failed upgrade
docker stop APPNAME   # if needed
docker rm APPNAME
docker run -d --restart always \
  --name APPNAME \
  -p PORT_FROM_PACKAGE_JSON:3000 \
  EXTRA_ARGS_FROM_PACKAGE_JSON \
  IMAGE_ID
docker rmi IMAGE_ID

Maintenance

Periodically you should delete old images as they are not removed automatically.

eval $(docker-machine env HOST)
docker images         # note old image ids
docker rmi IMAGE_IDs
0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago