Here is how I setup my staging server to show clients progress.
It’s been a really very long time since I wrote something. Sorry about that. Been super-busy drinking & coding!
I manage systems like this:
npm startfor dev server
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
The IP of my Digial Ocean instance is
22.214.171.124. I use enom for DNS. I setup a host record like this:
* - A - 126.96.36.199
This means “send everyone who asks for a domain that hasn’t been accounted for to my digital oceon box.”
I have the bare domain and www setup, so now I can make
We are going to make a simple lil mostly-static site that gives instructions, and let’s users quickly send an email to me to add their key (with the above command.) I could make a fancy admin, but I just want it to be fast and simple. You can see what I did at dev.jetboystudio.com. For the sake of simplicity, I will just use my domain below, but you will need to change it to yours.
git clone https://github.com/konsumer/dev.git && cd dev && npm i
git remote add dokku email@example.com:dev
git push dokku master
Now the default is the info-site for deploying to dev. You can add a remote like
git remote add staging firstname.lastname@example.org:WHATEVER to any project and it will be at
http://WHATEVER.jetboystudio.com, and you can push with
git push staging master.
I was having funny little issues on Ubuntu 12.10 64bit, and realized that it was using a really old version of node.