diff options
author | Joris | 2020-01-18 16:18:26 +0100 |
---|---|---|
committer | Joris | 2020-01-18 16:18:26 +0100 |
commit | bc48d7428607c84003658d5b88d41cf923d010fd (patch) | |
tree | 276ef115d9eff72f3d673bb4bb639108272d81be /Makefile | |
parent | fff99e6fb1c03235e219a94ce52acf5a50d3fb62 (diff) |
Add deploy command
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -4,11 +4,6 @@ start: stop: @tmux kill-session -t sharedCost -dist: - @nix-build -o result-server -A ghc.server - @nix-build -o result-client -A ghcjs.client - @nix-shell -p closurecompiler --command 'closure-compiler result-client/bin/client.jsexe/all.js --js_output_file public/javascript/main.js' - clean: clean-server clean-client build: build-server build-client cp-client @@ -49,3 +44,19 @@ run-server: watch-server: @nix-shell -A shells.ghc --run "nodemon --delay 0.2 --watch ./server --watch ./common --ext hs --exec '(tput reset && make build-server-inside && make run-server) || :'" + +# Deploy +# ------ + +deploy: + @make clean + @nix-build -o result-server -A ghc.server + @nix-build -o result-client -A ghcjs.client + @nix-shell -p closurecompiler --command 'closure-compiler result-client/bin/client.jsexe/all.js --js_output_file public/javascript/main.js' + @rm -rf bundle + @mkdir bundle + @cp application.conf bundle + @cp -r public bundle + @cp result-server/bin/server bundle + @rsync -avzhr bundle/ guyonvarch.me:servers/shared-cost + @rm -rf bundle |