-
Notifications
You must be signed in to change notification settings - Fork 17
Deployments
Yaw Etse edited this page Feb 26, 2015
·
12 revisions
coming soon
production setup for ubunutu
- install compliers on ubuntu: https://help.ubuntu.com/community/InstallingCompilers
- install mongodb - http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ install node https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
- install nodejs-legacy on ubuntu
sudo apt-get install nodejs-legacy
- install npm on ubuntu
sudo apt-get install npm
- install node - https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
- install pm2
$ npm install pm2 -g --unsafe-perm
$ pm2 startup ubuntu # start as a service
- install nodemon
$ npm install nodemon -g
- install nginx
- copy ssh keys to server if using ssh, or set up keys for deployments
$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
- on server, install git, make sure your server has acccess to git repo - https://help.github.com/articles/generating-ssh-keys/#platform-linux
- set up environment config
mywebapp/periodicjs/content/config/(config.json|environment/[environment].json)
- set up npm deployment
mywebapp/periodicjs/content/config/deployment/ecosystem.json
- push changes to github
- start on prod
$ npm run deploy_prod
on server
$ cd [/path/to/webapp]/current/periodicjs
$ npm run start_prod
-
nginx conf: update your nginx conf to proxy nginx, sample config in
content/config/deployment/periodic.nginx.conf
-
restart nginx
$ service nginx restart
- Home
- Getting Started
- Installation
- Upgrades
- Content Management & Data
- Content Entities
- Content Taxonomy
- Content Types
- Content Management System
- Themes
- Switching Themes
- Installing Themes
- Creating Themes
- Extensions
- Managing Extensions
- Installing Extensions
- Creating Extensions
- Configuration
- Database Configuration
- Environment Configuration
- Environment Setup
- Deployment Configuration
- PM2 Deployments
- Development
- FAQ