Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
ef5c2405
Commit
ef5c2405
authored
Dec 04, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7 from cpennington/static-assets-in-devstack
Static assets in devstack
parents
79762fcf
3a535f3d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
5 deletions
+37
-5
Makefile
+13
-5
course_discovery/settings/devstack.py
+21
-0
docker-compose.yml
+3
-0
No files found.
Makefile
View file @
ef5c2405
...
@@ -5,28 +5,36 @@
...
@@ -5,28 +5,36 @@
help
:
help
:
@
echo
"Please use
\`
make <target>' where <target> is one of"
@
echo
"Please use
\`
make <target>' where <target> is one of"
@
echo
" help display this help message"
@
echo
" clean delete generated byte code and coverage reports"
@
echo
" clean delete generated byte code and coverage reports"
@
echo
" compile_translations compile translation files, outputting .po files for each supported language"
@
echo
" compile_translations compile translation files, outputting .po files for each supported language"
@
echo
" dummy_translations generate dummy translation (.po) files"
@
echo
" dummy_translations generate dummy translation (.po) files"
@
echo
" extract_translations extract strings to be translated, outputting .mo files"
@
echo
" extract_translations extract strings to be translated, outputting .mo files"
@
echo
" fake_translations generate and compile dummy translation files"
@
echo
" fake_translations generate and compile dummy translation files"
@
echo
" help display this help message"
@
echo
" html_coverage generate and view HTML coverage report"
@
echo
" html_coverage generate and view HTML coverage report"
@
echo
" migrate apply database migrations"
@
echo
" migrate apply database migrations"
@
echo
" pull_translations pull translations from Transifex"
@
echo
" pull_translations pull translations from Transifex"
@
echo
" push_translations push source translation files (.po) from Transifex"
@
echo
" push_translations push source translation files (.po) from Transifex"
@
echo
" quality run PEP8 and Pylint"
@
echo
" quality run PEP8 and Pylint"
@
echo
" requirements install requirements for local development"
@
echo
" requirements install requirements for production"
@
echo
" local-requirements install requirements for local development"
@
echo
" test run tests and generate coverage report"
@
echo
" test run tests and generate coverage report"
@
echo
" validate run tests and quality checks"
@
echo
" validate run tests and quality checks"
@
echo
" static gather all static assets for production"
@
echo
" clean_static remove all generated static files"
@
echo
" start-devstack run a local development copy of the server"
@
echo
" start-devstack run a local development copy of the server"
@
echo
" open-devstack open a shell on the server started by start-devstack"
@
echo
" open-devstack open a shell on the server started by start-devstack"
@
echo
""
@
echo
""
clean
:
static
:
python manage.py collectstatic
--noinput
clean_static
:
rm
-rf
assets/ course_discovery/static/build
clean
:
clean_static
find
.
-name
'*.pyc'
-delete
find
.
-name
'*.pyc'
-delete
coverage erase
coverage erase
rm
-rf
assets
local-requirements
:
local-requirements
:
pip install
-qr
requirements/local.txt
--exists-action
w
pip install
-qr
requirements/local.txt
--exists-action
w
...
@@ -45,7 +53,7 @@ quality:
...
@@ -45,7 +53,7 @@ quality:
validate
:
test quality
validate
:
test quality
migrate
:
migrate
:
python manage.py migrate
python manage.py migrate
--noinput
html_coverage
:
html_coverage
:
coverage html
&&
open htmlcov/index.html
coverage html
&&
open htmlcov/index.html
...
...
course_discovery/settings/devstack.py
0 → 100644
View file @
ef5c2405
from
course_discovery.settings.production
import
*
DEBUG
=
True
del
LOGGING
[
'handlers'
][
'local'
]
# TOOLBAR CONFIGURATION
# See: http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
if
os
.
environ
.
get
(
'ENABLE_DJANGO_TOOLBAR'
,
False
):
INSTALLED_APPS
+=
(
'debug_toolbar'
,
)
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
DEBUG_TOOLBAR_PATCH_SETTINGS
=
False
INTERNAL_IPS
=
(
'127.0.0.1'
,)
# END TOOLBAR CONFIGURATION
docker-compose.yml
View file @
ef5c2405
...
@@ -33,3 +33,5 @@ course-discovery:
...
@@ -33,3 +33,5 @@ course-discovery:
command
:
/edx/app/course_discovery/devstack.sh start
command
:
/edx/app/course_discovery/devstack.sh start
ports
:
ports
:
-
"
18381:18381"
-
"
18381:18381"
-
"
8381:8381"
-
"
48381:48381"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment