Commit a008e3e3 authored by mdsecurity's avatar mdsecurity

moving the mv and cp command to the startup file

parent 349e6f5b
Pipeline #575 passed with stage
in 7 minutes and 8 seconds
......@@ -16,6 +16,3 @@ RUN apt-get install
RUN pip install -r requirements.txt
ADD . /go/
RUN mv go/settings/settings.docker.py.template go/settings/settings.py
RUN mv go/settings/secret.docker.py.template go/settings/secret.py
......@@ -63,6 +63,7 @@ Next go to the directory with the docker-compose file in it and run:
`$ docker-compose up`
SOMETIMES if this branch is updated you might have to
You should see that the server is running by going to http://localhost:8000 in your browser.
Any changes you make to your local file system will be mirrored in the server.
......
......@@ -4,6 +4,8 @@ until nc -z db 3306; do
echo "waiting for database to start..."
sleep 1
done
cp go/settings/settings.docker.py.template go/settings/settings.py
cp go/settings/secret.docker.py.template go/settings/secret.py
export SECRET_KEY=$(dd if=/dev/urandom count=100 | tr -dc "A-Za-z0-9" | fold -w 60 | head -n1 2>/dev/null)
python go/manage.py flush --no-input
python go/manage.py makemigrations
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment