Convenient deployment

This commit is contained in:
Gregor Kleen 2018-07-03 16:00:19 +02:00
parent f64bdba774
commit bddaed3a34

20
deploy.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env/sh
configFile=""
case "$1" in
test)
configFile="keter_testworx.yml"
;;
production)
configFile="keter_uni2work.yml"
;;
*)
echo "Usage: $0 (test|production)" >&2
exit 2
;;
esac
ln -svf ${configFile} config/keter.yml
yesod keter && git tag live && git push origin live