Replace rake functions with python paver functions

Deprecated rake functions issue a warning and then call paver
replacements

Bring Paver commands up to date with master for servers, assets, and docs.
Revert deprecation of quality, tests, and i18n for a future pull request.
Deprecate workspace migration
This commit is contained in:
David Glance
2014-01-13 20:45:11 +08:00
committed by Will Daly
parent b23e9fb62f
commit df2e410f2a
43 changed files with 1029 additions and 537 deletions

View File

@@ -6,6 +6,7 @@
To install all of the libraries needed for our rake commands, run `bundle install`.
This will read the `Gemfile` and install all of the gems specified there.
Note: Rake has been deprecated to the Python Paver. This is only needed until rake is fully deprecated
### Python
@@ -46,7 +47,7 @@ After MongoDB daemon is successfully running, check out the course data
directories that you want to work with into the `GITHUB_REPO_ROOT` (by default,
`../data`). Then run the following command:
rake resetdb
paver update_db
## Installing
@@ -60,10 +61,10 @@ the repo:
Both the LMS and Studio can be started using the following shortcut tasks
rake lms # Start the LMS
rake cms # Start studio
rake lms[cms.dev] # Start LMS to run alongside Studio
rake lms[cms.dev_preview] # Start LMS to run alongside Studio in preview mode
paver lms # Start the LMS
paver studio # Start studio
paver lms --settings=cms.dev # Start LMS to run alongside Studio
paver lms --settings=cms.dev_preview # Start LMS to run alongside Studio in preview mode
Under the hood, this executes `./manage.py {lms|cms} --settings $ENV runserver`,
which starts a local development server.
@@ -72,13 +73,12 @@ Both of these commands take arguments to start the servers in different environm
or with additional options:
# Start the LMS using the test configuration, on port 5000
rake lms[test,5000] # Executes ./manage.py lms --settings test runserver 5000
paver lms --settings=test --port=5000 # Executes ./manage.py lms --settings test runserver 5000
*N.B.* You may have to escape the `[` characters, depending on your shell: `rake "lms[test,5000]"`
To get a full list of available paver tasks, run:
To get a full list of available rake tasks, use:
paver --help
rake -T
### Troubleshooting

View File

@@ -74,7 +74,7 @@ To fully test the discussion forum, you might want to act as a moderator or an a
First make sure that the database is up-to-date:
rake resetdb
paver update_db
If you have created users in the edx-platform django apps when the comment service was not running, you will need to one-way sync the users into the comment service back end database: