From 1db7ad0581e7b51c472e03899c367ed61d24744c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 20 Nov 2018 02:16:23 +0100 Subject: Add deployment script To deploy, run $ make deploy This checks prerequisites and runs `scripts/deploy.sh`. Makefile: Include a new target that builds the Rust binaries for Linux using Docker. The script `rsync`s the website files to the server, moves some files around on the server, and runs the database migrations. Currently I'm getting an error at the database migration stage, as it seems I can't use `UTC_TIMESTAMP()` as a default column value. Need to correct that to get a clean deployment. --- license-generator/.env.sample | 3 +++ 1 file changed, 3 insertions(+) (limited to 'license-generator') diff --git a/license-generator/.env.sample b/license-generator/.env.sample index bc8f6ba..9636e4e 100644 --- a/license-generator/.env.sample +++ b/license-generator/.env.sample @@ -8,6 +8,9 @@ export DATABASE_URL="mysql://localhost:3306/dome_key" export GO_DATABASE_URL="mysql://tcp(localhost:3306)/dome_key" +export SSH_SERVER="user@host" +export REMOTE_PUBLIC_WWW="/home/user/www" + function migrate-create () { local migration_name="$1" -- cgit v1.2.3