This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo NODE_ENV=production forever start -a -l /var/log/daltonmaag.com/www.daltonmaag.com.log -o /var/log/daltonmaag.com/www.daltonmaag.com.log -e /var/log/daltonmaag.com/www.daltonmaag.com.error.log /var/www/html/production/daltonmaag.com/server.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| hash="$(git describe --always)" | |
| path="$(git rev-parse --show-toplevel)/config" | |
| filename=".git-commit-sha" | |
| filepath="$path/$filename" | |
| echo $hash > $filepath | |
| git add $filepath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## /etc/nginx/sites-available/daltonmaag.com | |
| # create an upstream for the node server | |
| upstream node_app { | |
| server 127.0.0.1:3000; | |
| } | |
| server { | |
| listen 0.0.0.0:80; | |
| server_name testing.daltonmaag.com testweb; |