- Change directory.
cd /Library/LaunchDaemons
- Create Apache file for startup.
{ | |
"workbench.colorTheme": "Atom One Dark", | |
"git.enabled": true, | |
"editor.tabSize": 2, | |
"editor.fontSize": 13, | |
"editor.wordWrap": "on", | |
"editor.lineHeight": 2.1, | |
"editor.cursorWidth": 3, | |
"editor.linkedEditing": true, | |
"editor.tabCompletion": "on", |
const { spawn } = require('child_process') | |
// eg: /Users/your-user-name/.ssh/id_rsa | |
const SSH_KEY_PATH = '' | |
// server user name eg: root | |
const SSH_USER = '' | |
// server ip address | |
const SSH_HOST = '' | |
// app path on server eg: /var/www/site.com | |
const SERVER_PATH = '' |