Switch to 'make' for running app processes

These are simple enough that they don't need their own scripts.
This commit is contained in:
Ben Thorner
2021-02-22 16:41:30 +00:00
parent 2af1d6f159
commit 36a806e8bf
3 changed files with 5 additions and 5 deletions

View File

@@ -22,6 +22,10 @@ VIRTUALENV_ROOT := $(shell [ -z $$VIRTUAL_ENV ] && echo $$(pwd)/venv || echo $$V
## DEVELOPMENT ## DEVELOPMENT
.PHONY: run-flask
run-flask:
. environment.sh && flask run -p 6012
.PHONY: help .PHONY: help
help: help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

View File

@@ -127,7 +127,7 @@ Your aws credentials should be stored in a folder located at `~/.aws`. Follow [A
In the root directory of the application, run: In the root directory of the application, run:
```shell ```shell
./scripts/run_app.sh make run-flask
``` ```
Then visit [localhost:6012](http://localhost:6012) Then visit [localhost:6012](http://localhost:6012)

View File

@@ -1,4 +0,0 @@
#!/bin/bash
source environment.sh
flask run -p 6012