deploy: check current hostname before trying to deploy
This commit is contained in:
parent
2f8ef8bd1a
commit
bc87129e05
@ -15,6 +15,8 @@ PROD_DIR="$HOME/www"
|
|||||||
PHP="$(which php)"
|
PHP="$(which php)"
|
||||||
REPO_URI=$(cat "$DEV_DIR/config.yaml" | grep ^git_repo | head -1 | awk '{print $2}')
|
REPO_URI=$(cat "$DEV_DIR/config.yaml" | grep ^git_repo | head -1 | awk '{print $2}')
|
||||||
|
|
||||||
|
[ "$(hostname)" = "4in1" ] || die "unexpected hostname. are you sure you're running it on the right machine?"
|
||||||
|
|
||||||
git push origin master
|
git push origin master
|
||||||
|
|
||||||
[ -d "$STAGING_DIR" ] || mkdir "$STAGING_DIR"
|
[ -d "$STAGING_DIR" ] || mkdir "$STAGING_DIR"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user