Newer
Older
fractals / publish.sh
@peter peter on 2 Oct 2019 379 bytes Added deployment script.
#! /bin/bash

if ! test -f ./publish.config.user ; then
    echo "scpTargetFolder=user@host.com:/path/to/folder/" > ./publish.config.user
    echo "Missing config file 'publish.config.user' created."
else
    webpack --mode production --devtool false

    # executes all variable definitions in the config file:
    . publish.config.user

    scp -r public/* $scpTargetFolder
fi