fix: Make sure "./run" is the invocation (#5724)
* fix: Make sure "./run" is the invocation * Use $(dirname $0) instead of hacky test * chore: Update docs
This commit is contained in:
parent
d18db5bb76
commit
32b90b99bc
|
@ -87,11 +87,10 @@ You can also open the datatracker project folder and click the **Reopen in conta
|
|||
On Linux / macOS:
|
||||
|
||||
```sh
|
||||
cd docker
|
||||
./run
|
||||
./docker/run # or whatever path you need
|
||||
```
|
||||
|
||||
> Note that you can pass the `-r` flag to `./run` to force a rebuild of the containers. This is useful if you switched branches and that the existing containers still contain configurations from the old branch. You should also use this if you don't regularly keep up with main and your containers reflect a much older version of the branch.
|
||||
> Note that you can pass the `-r` flag to `run` to force a rebuild of the containers. This is useful if you switched branches and that the existing containers still contain configurations from the old branch. You should also use this if you don't regularly keep up with main and your containers reflect a much older version of the branch.
|
||||
|
||||
On Windows *(using Powershell)*:
|
||||
```sh
|
||||
|
|
|
@ -37,6 +37,15 @@ while getopts "hp:r" opt; do
|
|||
esac
|
||||
done
|
||||
|
||||
# Ensure the run script is in our directory.
|
||||
dirname=$(dirname $0)
|
||||
if [ "$dirname" = "." -o "$dirname" = "" ] ; then
|
||||
:
|
||||
else
|
||||
echo "Changing to directory $dirname"
|
||||
cd $dirname || exit 1
|
||||
fi
|
||||
|
||||
# Remove mounted temp directories
|
||||
rm -rf .parcel-cache __pycache__
|
||||
|
||||
|
|
Loading…
Reference in a new issue