- Script which configure all of this
- Actual explanations
- More configurations platforms/options
/etc/nginx/sites-enabled/myproject.conf
- change settings in file (site URL)
- note that here PORT used is 3001
- link the file to sites-available with
ln -s
TODO/WIP:
- Add required installations (
apt-get install nginx
etc.) - Put SSL config
- Apache2 too?
/etc/init.d/myproject
- Rename to project name
mv /etc/init.d/myproject /etc/init.d/NAME
chmod +x /etc/init.d/NAME
- change settings inside (be careful mongodb name is the same as the filename, PORT is 3001)
- You can now use
sudo service NAME start
(or stop, restart and status)
TODO/WIP:
- Explain more how to edit the file (create a little generator?)
- Add node & dependencies installations
- Find out when to use
meteor bundle
+node main.js
like here, use directlymeteor
, or use future - Put others init.d configs like upstart (supervisor too?)
- ?write configs for
meteor
andfuture
deployments?
/home/user/myproject/fabfile.py
- Change file to edit
project_name
- Put your git repo in src
cd /home/user/myproject/; git clone <REPO>; mv <REPONAME> src
- use
fab update
(requirepip install fabric
)
TODO/WIP:
- Explicit dependencies
python
,pip
,fabric
etc. - Make more options for deployment (like path etc.)
- Find out how to perform hot deployments?
- Explain default structure and commands
- makefile / rakefile too?