forked from emontnemery/mqttdevices
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tradeface
committed
May 27, 2020
1 parent
d5a2080
commit 6486a7c
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,8 @@ COPY requirements.txt ./ | |
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
RUN python3 web/manage.py migrate \ | ||
&& python3 web/manage.py loaddata dpstype \ | ||
&& python web/manage.py createsuperuser --username admin --password admin --email [email protected] | ||
RUN make | ||
|
||
EXPOSE 8000 | ||
|
||
CMD [ "python", "./web/manage.py runserver --noreload" ] | ||
CMD [ "python", "./web/manage.py runserver 0.0.0.0:8000 --noreload" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
init: | ||
pip3 install -r requirements.txt | ||
python3 web/manage.py migrate | ||
python3 web/manage.py loaddata dpstype setting | ||
python3 web/manage.py loaddata dpstype | ||
python3 web/manage.py loaddata setting | ||
python3 web/manage.py createsuperuser --username admin --password admin --email [email protected] | ||
|
||
install: | ||
|
@@ -11,4 +12,4 @@ install: | |
sudo systemctl start mqttdevices.service | ||
|
||
docker: | ||
docker build -t mqttdevices . | ||
docker build -t mqttdevices . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters