Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktmud/server-utilities
Utilities I use to manage a VPS
https://github.com/ktmud/server-utilities
Last synced: about 1 month ago
JSON representation
Utilities I use to manage a VPS
- Host: GitHub
- URL: https://github.com/ktmud/server-utilities
- Owner: ktmud
- Created: 2014-01-19T12:35:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-21T13:05:38.000Z (almost 11 years ago)
- Last Synced: 2024-04-08T01:27:04.858Z (9 months ago)
- Language: Shell
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Server Utilities
How I run a server.
### git-deploy-template
```bash
git config --global init.templatedir `./git-deploy-template`
git init --bare --template `./git-deploy-template`
```Use `git push` to update the `www` directory,
and use [pm2](https://github.com/Unitech/pm2) to restart the app.### /etc/pm2/apps.json
First of all, I suggest all your app's code/etc/data goes to an OS unrelated
directory, like `/srv/` or something. So you can mount an independant data
disk into this directory (for the safety of your data).This apps.json just register all your apps under coverage of `pm2`, then you can
call `/etc/init.d/pm2-init.sh restart {app}` to restart your app.See https://github.com/Unitech/pm2#multi-process-json-declaration for more details.