2022-03-13 20:18:07 +01:00
|
|
|
APIURL_prod := https://api.nicecock.eu/api/comment
|
|
|
|
APIURL_staging := https://api.nicecock.eu/api/testingcomment
|
|
|
|
|
2022-03-01 14:36:04 +01:00
|
|
|
build:
|
2022-03-13 20:18:07 +01:00
|
|
|
GOARCH=wasm GOOS=js go build -ldflags="-X 'dutchellie.nl/DutchEllie/proper-website-2/components.ApiURL=${APIURL_staging}'" -o web/app.wasm
|
|
|
|
go build -ldflags="-X 'dutchellie.nl/DutchEllie/proper-website-2/components.ApiURL=${APIURL_staging}'" -o app
|
|
|
|
|
|
|
|
build-prod:
|
|
|
|
GOARCH=wasm GOOS=js go build -ldflags="-X 'dutchellie.nl/DutchEllie/proper-website-2/components.ApiURL=${APIURL_prod}'" -o web/app.wasm
|
|
|
|
go build -ldflags="-X 'dutchellie.nl/DutchEllie/proper-website-2/components.ApiURL=${APIURL_prod}'" -o app
|
2022-03-01 14:36:04 +01:00
|
|
|
|
|
|
|
run: build
|
2022-03-13 20:18:07 +01:00
|
|
|
./app
|
|
|
|
|
|
|
|
run-prod: build-prod
|
2022-03-01 14:36:04 +01:00
|
|
|
./app
|