Skip to content
This repository was archived by the owner on Feb 10, 2020. It is now read-only.

Commit a62087e

Browse files
Merge pull request #516 from WillMoggridge/prpl-command
Set prpl-server to proxy bots to http://rendertron
2 parents 5ebffab + 61ab883 commit a62087e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"polymer-build": "npm-run-all 'polymer build {@}' --",
2525
"polymer-lint": "npm-run-all 'polymer lint {@}' --",
2626
"polymer-serve": "npm-run-all 'polymer serve {@}' --",
27-
"prpl-server": "prpl-server --root build/ --host 0.0.0.0 --port 80",
27+
"prpl-server": "prpl-server --root build/ --host 0.0.0.0 --port ${PORT:-80} $(if [ -n \"${BOT_PROXY:-}\" ]; then echo \"--bot-proxy ${BOT_PROXY}\"; fi)",
2828
"serve": "npm-run-all 'serve-examples {@}' --",
2929
"serve-examples": "./bin/serve $(if [ -z \"$*\" ]; then echo \"examples\"; fi)",
3030
"serve-live": "./bin/serve",

0 commit comments

Comments
 (0)