13 lines
264 B
Bash
13 lines
264 B
Bash
#!/bin/sh
|
|
|
|
API_FILE_PATH=./src/data/api.js
|
|
|
|
echo "[entrypoint] Replacing the API URL with the given HOST_URL"
|
|
sed -i -e "s#\"/api\"#\"$HOST_URL/api\"#g" $API_FILE_PATH
|
|
|
|
echo "[entrypoint] Running bundle"
|
|
npm run bundle
|
|
|
|
echo "[entrypoint] Running serve"
|
|
exec "$@"
|