mirror of
https://github.com/dnote/dnote
synced 2026-03-15 15:05:51 +01:00
23 lines
557 B
Bash
Executable file
23 lines
557 B
Bash
Executable file
#!/bin/bash
|
|
# dev.sh builds and starts development environment for standalone app
|
|
set -eux -o pipefail
|
|
|
|
basePath="$GOPATH/src/github.com/dnote/dnote"
|
|
appPath="$basePath"/web
|
|
|
|
# run webpack-dev-server for js
|
|
(
|
|
cd "$appPath" &&
|
|
|
|
BASE_URL=http://localhost:8080 \
|
|
ASSET_BASE_URL=http://localhost:3000 \
|
|
COMPILED_PATH="$appPath"/compiled \
|
|
PUBLIC_PATH="$appPath"/public \
|
|
STANDALONE=true \
|
|
COMPILED_PATH="$basePath/web/compiled" \
|
|
IS_TEST=true \
|
|
"$appPath"/scripts/webpack-dev.sh
|
|
) &
|
|
|
|
# run server
|
|
(cd "$appPath" && PORT=3000 go run main.go)
|