The purpose of this repo is to test deployment with the simplest possible node.js app.
git clone git@github.com:nelsonic/hello-world-node-http-server.git && cd hello-world-node-http-server
npm start
Visit: http://localhost:3000 in your web browser.
That's it!
This app was/is used to test our "ACID" deployment process. see: dwyl/learn-devops#24
See: branch.sh
e.g: 42
create the Dokku app for the issue number:
ssh root@138.68.163.126 dokku apps:create <appname>
e.g:
ssh root@138.68.163.126 dokku apps:create $(sh ./issue.sh)
Or for the master
:
ssh root@138.68.163.126 dokku apps:create hello-world-node
git remote add dokku dokku@138.68.163.126:$(sh ./issue.sh)
Delete the remote
git remote rm dokku
Master:
git remote add dokku dokku@138.68.163.126:hello-world-node
git push dokku $(sh ./branch.sh):master
Add the wildcard Cert to the Newly Created App
ssh root@138.68.163.126 "sudo dokku certs:add $(sh ./issue.sh) < /etc/letsencrypt/live/ademo.app/certs.tar"
ssh root@138.68.163.126 "sudo dokku certs:add hello-world-node < /etc/letsencrypt/live/ademo.app/certs.tar"
ssh root@138.68.163.126 "nginx -t && nginx -s reload"
If you are using Dokku to deploy your app, run the following command on your server instance:
ssh root@138.68.163.126
cat ~/.ssh/id_rsa.pub | sudo sshcommand acl-add dokku root
sh .bin/docker-exited.sh