mirror of
https://github.com/dnote/dnote
synced 2026-03-15 15:05:51 +01:00
* Rename handlers to api * Fix imports * Fix test * Abstract * Fix warning * wip * Split session * Pass db * Fix test * Fix test * Remove payment * Fix state * Fix flow * Check password when changing email * Add test methods * Fix timestamp * Document * Remove clutter * Redirect to login * Fix * Fix
27 lines
633 B
Bash
Executable file
27 lines
633 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -eux
|
|
|
|
dir=$(dirname "${BASH_SOURCE[0]}")
|
|
basePath="$dir/../.."
|
|
appPath="$basePath/web"
|
|
|
|
(
|
|
cd "$appPath" &&
|
|
PUBLIC_PATH=$PUBLIC_PATH \
|
|
COMPILED_PATH=$COMPILED_PATH \
|
|
ASSET_BASE_URL=$ASSET_BASE_URL \
|
|
"$dir/setup.sh" &&
|
|
|
|
BUNDLE_BASE_URL=$BUNDLE_BASE_URL
|
|
ASSET_BASE_URL=$ASSET_BASE_URL \
|
|
COMPILED_PATH=$COMPILED_PATH \
|
|
PUBLIC_PATH=$PUBLIC_PATH \
|
|
node "$dir/placeholder.js" &&
|
|
|
|
ROOT_URL=$ROOT_URL \
|
|
VERSION="$VERSION" \
|
|
"$appPath"/node_modules/.bin/webpack-dev-server \
|
|
--env.standalone="$STANDALONE" \
|
|
--host "$WEBPACK_HOST" \
|
|
--config "$appPath"/webpack/dev.config.js
|
|
)
|