-
Notifications
You must be signed in to change notification settings - Fork 2
Deployment
Andy Park edited this page Mar 27, 2018
·
7 revisions
Until we move over to our other production servers, here are the general deployment steps.
- Linode VPS
- Ubuntu 16.04
- DNS vps1.mycoralhealth.com
- cross compile your binary for
GOOS=linux GOARCH=amd64
-
tip: if you are cross compiling on OSX, the Go toolchain doesn't work well with CGO. The
mattn/sqlite
package requires CGO so it's probably easiest to compile the binary under a Linux environment e.g. with Vagrant -
scp
your compiled binary to the live server[email protected]
-
ssh
into the serverssh [email protected]
- move your binary to
/opt/healthtip
-
if you made changes to the db schema,
scp
and move yourcoral.db
to the same folder - restart the app with
sudo systemctl restart healthtip
- if you made changes to any of the web components, they reside in
/var/www/html
so you'll have toscp
and move yourjs
and any other static files there - probably best to leave the
.env
file on the server alone unless you are intentionally making changes to it - test it to make sure everything is working correctly https://tips.mycoralhealth.com