-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot make SENSEI_PORT work #147
Comments
Hi! What's your OS? What's your shell? What's your Docker backend? |
Looks like Line 51 in ed10b98
SENSEI_PORT is dismissed. PR incoming.
|
There are 2 problems:
Env var evaluationThis form of env var definition is not taken in account in the shell command itself, only in the sub-process: $ SENSEI_PORT=8090 echo ${SENSEI_PORT}
# <= nothing!
$ You have to $ export SENSEI_PORT=8090; echo ${SENSEI_PORT}
8090
$ @hgwood: this could be added in the README? When using the second form with sensei: $ export SENSEI_PORT=8090; sensei
Processing folder '/formation-kubernetes-user' as 'formation-kubernetes-user' using slide size 1420x800 and language 'en'
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:8080/
<i> [webpack-dev-server] On Your Network (IPv4): http://172.17.0.2:8080/
[...]
$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1c7ea1542340 zenika/sensei "node /app/src/cli/c…" 9 seconds ago Up 8 seconds 8080/tcp, 0.0.0.0:8090->8090/tcp, :::8090->8090/tcp friendly_germain Then we hit the second issue about the sensei process not using correctly the env var. Sensei env var usePR #148 fixes it: $ export SENSEI_PORT=8090; sensei
Processing folder '/formation-kubernetes-user' as 'formation-kubernetes-user' using slide size 1420x800 and language 'en'
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:8090/
<i> [webpack-dev-server] On Your Network (IPv4): http://172.17.0.2:8090/
[...]
$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1bcefc0e2973 zenika/sensei "node /app/src/cli/c…" 3 seconds ago Up 3 seconds 8080/tcp, 0.0.0.0:8090->8090/tcp, :::8090->8090/tcp wonderful_borg |
Sure! |
@jermarchand I'm closing but please reopen if #148 and #150 dont fix your problem. |
Hello,
How to user the variable
SENSEI_PORT
?I locally set the alias for
sensei
and run the commandSENSEI_PORT=9080 sensei
The start logs are :
and http://localhost:9080/ failed to open a connection.
I update the alias for
sensei
with :And it's possible to change the
SENSEI_PORT
:)But the live reload does not work :(
Is there a solution ?
The text was updated successfully, but these errors were encountered: