diff --git a/Makefile b/Makefile index 0b10cace74f..51ecdde00c2 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,12 @@ up: export DEBUG = 'knex:query' up: require create-if-missing.env ../owid-content tmp-downloads/owid_metadata.sql.gz node_modules @make validate.env @make check-port-3306 + + @if tmux has-session -t grapher 2>/dev/null; then \ + echo '==> Killing existing tmux session'; \ + tmux kill-session -t grapher; \ + fi + @echo '==> Building grapher' yarn lerna run build @@ -97,6 +103,11 @@ up.full: require create-if-missing.env.full ../owid-content tmp-downloads/owid_m @make validate.env.full @make check-port-3306 + @if tmux has-session -t grapher 2>/dev/null; then \ + echo '==> Killing existing tmux session'; \ + tmux kill-session -t grapher; \ + fi + @echo '==> Building grapher' yarn lerna run build @@ -299,4 +310,4 @@ local-bake: itsJustJavascript yarn buildLocalBake clean: - rm -rf node_modules itsJustJavascript \ No newline at end of file + rm -rf node_modules itsJustJavascript