Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
0bad6294
Commit
0bad6294
authored
Jul 09, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update migrate and syncdb commands so they run on CMS as well, delete obsolete migrate task.
parent
23ffa2a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
rakelib/django.rake
+8
-6
No files found.
rakelib/django.rake
View file @
0bad6294
...
...
@@ -57,18 +57,20 @@ task :resetdb, [:env] do |t, args|
sh
(
django_admin
(
:lms
,
args
.
env
,
'migrate'
))
end
desc
"Update the relational database to the latest migration"
task
:migrate
,
[
:env
]
do
|
t
,
args
|
args
.
with_defaults
(
:env
=>
'dev'
)
sh
(
django_admin
(
:lms
,
args
.
env
,
'migrate'
))
end
task
:runserver
=>
:lms
desc
"Run django-admin <action> against the specified system and environment"
task
"django-admin"
,
[
:action
,
:system
,
:env
,
:options
]
do
|
t
,
args
|
# If no system was explicitly set, we want to run both CMS and LMS for migrate and syncdb.
no_system_set
=
true
if
args
.
system
no_system_set
=
false
end
args
.
with_defaults
(
:env
=>
'dev'
,
:system
=>
'lms'
,
:options
=>
''
)
sh
(
django_admin
(
args
.
system
,
args
.
env
,
args
.
action
,
args
.
options
))
if
no_system_set
and
(
args
.
action
==
'migrate'
or
args
.
action
==
'syncdb'
)
sh
(
django_admin
(
'cms'
,
args
.
env
,
args
.
action
,
args
.
options
))
end
end
desc
"Set the staff bit for a user"
...
...
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