added show-log script
This commit is contained in:
parent
94a8fcbd4c
commit
f22862e503
@ -102,6 +102,7 @@ It is equal to these commands:
|
|||||||
|
|
||||||
With these commands we can see if everything worked well:
|
With these commands we can see if everything worked well:
|
||||||
```bash
|
```bash
|
||||||
|
bash show-local.sh # a env-var safe wrapper for a 'docker-compose logs -f'
|
||||||
docker ps
|
docker ps
|
||||||
docker logs [service-name]
|
docker logs [service-name]
|
||||||
```
|
```
|
||||||
|
2
show-local.sh
Normal file → Executable file
2
show-local.sh
Normal file → Executable file
@ -3,4 +3,4 @@ cd $(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
|||||||
|
|
||||||
# Export default port to make compose file valid.
|
# Export default port to make compose file valid.
|
||||||
export JUPYTER_PORT=8888
|
export JUPYTER_PORT=8888
|
||||||
docker-compose ps
|
docker-compose logs -f
|
||||||
|
Loading…
Reference in New Issue
Block a user