Fakultas Ilmu Komputer UI

Commit d3fdb1ee authored by Fredy Pasaud's avatar Fredy Pasaud
Browse files

disable collectstatic

parent f90684e9
Pipeline #98677 failed with stage
in 15 seconds
......@@ -8,11 +8,11 @@ Deployment:
- master
before_script:
- gem install dpl
- heroku --app $HEROKU_APPNAME config:set DISABLE_COLLECTSTATIC=1
- wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
script:
- dpl --provider=heroku --app=$HEROKU_APPNAME --api-key=$HEROKU_APIKEY
- export HEROKU_API_KEY=$HEROKU_APIKEY
- heroku --app $HEROKU_APPNAME config:set DISABLE_COLLECTSTATIC=1
- heroku run --app $HEROKU_APPNAME python manage.py migrate
environment:
name: production
......
......@@ -36,6 +36,7 @@ INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'oauth',
]
......@@ -116,6 +117,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.0/howto/static-files/
STATIC_URL = 'static/'
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
......
Supports Markdown
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