A deployment process for Meteor applications, built from Chef Habitat
Specific Task. Standard Tools.
MetHabi works in several phases :
- Initial hook up to your target server
- First time deployment
- Subsequent deployments
MetHabi needs to create a user account hab
on your target server. This account will have passwordless sudo
privileges for running Chef Habitat. It also needs to install the Habitat executable also called hab
.
The script CommissionHabitatHost.sh
attempts to connect to the target server and upload a remotely callable shell script PrepareChefHabitat.sh
.
PrepareChefHabitat.sh
creates a user called hab
and then obtains hab
and prepares it for use.
MetHabi
- Install Meteor --
curl https://install.meteor.com/ | sh
- Install nvm --
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.6/install.sh | bash
- Ensure we have g++ --
sudo apt install -y g++
- Install NodeJS 4.4.7 --
nvm install v4.4.7
- Clone our simple-todos --
git clone https://github.com/yourse1f-yourorg/simple-todos
- Prepare it --
cd simple-todos && npm install
- Check it --
meteor
- Find the MongoDB, NodeJS and NginX packages on https://app.habitat.sh
- billmeyer/mongodb
- looprock/node
- core/nginx