-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Refs #21312 - add webpack url with hostname csp
- Loading branch information
Avi Sharvit
committed
Dec 26, 2018
1 parent
0a18082
commit c5a2833
Showing
3 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
#!/bin/sh | ||
./node_modules/.bin/webpack-dev-server --config config/webpack.config.js --host 0.0.0.0 --disable-host-check $WEBPACK_OPTS & | ||
|
||
# load the .env file | ||
if [ -f ".env" ]; | ||
then | ||
set -a | ||
. ./.env | ||
set +a | ||
echo ".env file loaded." | ||
else | ||
echo ".env file does not exist." | ||
fi | ||
|
||
./node_modules/.bin/webpack-dev-server --config config/webpack.config.js --disable-host-check $WEBPACK_OPTS & | ||
./bin/rails server -b 0.0.0.0 "$@" |