diff --git a/Makefile b/Makefile index 1acd53e2c..b8dade070 100644 --- a/Makefile +++ b/Makefile @@ -262,7 +262,7 @@ endif # For Reverse Proxy Problem see: https://groups.google.com/g/yesodweb/c/2EO53kSOuy0/m/Lw6tq2VYat4J # HELP(start-backend): start development instance ---start-backend: .stack +--start-backend: export YESOD_IP_FROM_HEADER=true; \ export DEV_PORT_HTTP=`cat $(CONTAINER_FILE) | grep 'DEV_PORT_HTTP=' | sed 's/DEV_PORT_HTTP=//'`; \ export DEV_PORT_HTTPS=`cat $(CONTAINER_FILE) | grep 'DEV_PORT_HTTPS=' | sed 's/DEV_PORT_HTTPS=//'`; \ @@ -282,11 +282,12 @@ endif export AVSPASS=$${AVSPASS:-nopasswordset} ; \ stack $(STACK_CORES) exec --local-bin-path $$(pwd)/bin --copy-bins -- yesod devel -p "$${DEV_PORT_HTTP}" -q "$${DEV_PORT_HTTPS}" # HELP(compile-backend): compile backend binaries ---compile-backend: .stack +--compile-backend: stack build $(STACK_CORES) --fast --profile --library-profiling --executable-profiling --flag uniworx:-library-only $(--DEVELOPMENT) --local-bin-path $$(pwd)/bin --copy-bins # HELP(dependencies-backend): (re-)build backend dependencies ---dependencies-backend: .stack #uniworx.cabal +--dependencies-backend: #uniworx.cabal chown -R `id -un`:`id -gn` "$(PROJECT_DIR)"; \ + stack install hpack; stack install yesod-bin; \ stack build -j2 --only-dependencies # HELP(lint-backend): lint backend --lint-backend: @@ -297,10 +298,6 @@ endif # uniworx.cabal: # stack exec -- hpack --force -.stack: - stack install hpack - stack install yesod-bin - # HELP(compile-frontend): compile frontend assets --compile-frontend: node_modules assets esbuild.config.mjs frontend/src/env.sass npm run build