You will need to include the following environment variables:
API_SECURITY_SALT
a long ass random string to be used for security things...WAAT_DATABASE
The Mongo DB URI
- OS: Ubuntu 14.04
- Webserver/Proxy: Nginx
- Version Control: Git
- Configure Git "post-receive" hook
- Modify .bashrc
sudo apt-get update
sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
sudo adduser manaloop
# assign default password
- Login as an admin
- Install package
sudo apt-get install git-core
- login as admin
- Install package
sudo apt-get install nginx
- Login as the manaloop user.
- Install NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
- Once NVM is installed, you may have to close and reopen your shell (logout and back into server). Once NVM is loaded into bash (automatically loads via ~/.bashrc file), you can run and install a specific version of node:
nvm install 4.2 # installs lastest Node 4.2.x version
- Setup the default version of node to use:
nvm alias default 4.2
- Set default as the primary version of node to use:
nvm use default
npm install -g pm2
- Append your ssh key (
id_rsa.pub
) to manaloop user's .ssh/authorized_keys file - Setup the server as a git source:
git remote add production ssh://manaloop@v1.api.manaloop.com/home/manaloop/repo.git
- You can now push to the production server:
git push production master
Server will auto install npm packages and auto restart node. There should be outpout in the console.
You must change the post-receive hook to load .bash_profile since .bashrc on the server does not run if it interactive shell is off (git-bash does not run in interactive mode).
MANALOOP_DATABASE