Fixed static files for admin
This commit is contained in:
parent
8e9d185293
commit
937783b108
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
|||||||
|
/static/
|
||||||
|
!/static/.gitkeep
|
||||||
|
|
||||||
### OSX ###
|
### OSX ###
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.AppleDouble
|
.AppleDouble
|
||||||
|
@ -40,6 +40,8 @@ COPY . /home/app/code/
|
|||||||
|
|
||||||
RUN chown -R app: /home/app
|
RUN chown -R app: /home/app
|
||||||
|
|
||||||
|
RUN python3 /home/app/code/manage.py collectstatic
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["/usr/sbin/uwsgi", "--ini", "/home/app/code/uwsgi.ini", "--plugin", "python3"]
|
CMD ["/usr/sbin/uwsgi", "--ini", "/home/app/code/uwsgi.ini", "--plugin", "python3"]
|
||||||
USER app
|
USER app
|
||||||
|
@ -37,6 +37,8 @@ LOGOUT_REDIRECT_URL = "/"
|
|||||||
|
|
||||||
ITEMS_PER_PAGE = 30
|
ITEMS_PER_PAGE = 30
|
||||||
|
|
||||||
|
STATIC_ROOT = "static/"
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
Loading…
Reference in New Issue
Block a user