Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve "make run-https" asset workflow (#5835)
* Improve "make run-https" asset workflow **Why**: - To prevent caching in development with the Rails public file server - To avoid writing webpack-dev-server URLs into the asset manifest when the app is requested across the network - To automatically recompile JavaScript while running "make run-https" * Keep webpack port consideration **Why**: So as not to break assets precompilation * Flip webpack watch and webpack serve by HTTPS env Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com> Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
- Loading branch information
1 parent
e1a05a7
commit 7bdfb5b
Showing
4 changed files
with
12 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
web: WEBPACK_PORT=${WEBPACK_PORT:-3035} bundle exec rackup config.ru --port ${PORT:-3000} --host ${HOST:-localhost} | ||
web: WEBPACK_PORT=${WEBPACK_PORT:-3035} bundle exec rackup config.ru --port ${PORT:-3000} --host ${FOREMAN_HOST:-localhost} | ||
worker: bundle exec good_job start | ||
mailcatcher: mailcatcher -f | ||
js: WEBPACK_PORT=${WEBPACK_PORT:-3035} yarn webpack serve | ||
js: WEBPACK_PORT=${WEBPACK_PORT:-3035} yarn webpack $([ -n "$HTTPS" ] && echo "--watch" || echo "serve") |
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