Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
b2eefad1
Commit
b2eefad1
authored
Apr 17, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install test course in a sandbox
parent
d34b5178
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
scripts/data/test-course.tar.gz
+0
-0
scripts/install-test-course.sh
+39
-0
No files found.
scripts/data/test-course.tar.gz
0 → 100644
View file @
b2eefad1
File added
scripts/install-test-course.sh
0 → 100755
View file @
b2eefad1
#!/usr/bin/env bash
###################################################
#
# install-sandbox-course.sh
#
# Install a test course in a sandbox.
# Meant to be run from within the sandbox.
#
# Usage:
#
# ./install-sandbox-course.sh
#
###################################################
cd
`
dirname
$BASH_SOURCE
`
&&
cd
..
EDX_PLATFORM
=
'/edx/app/edxapp/edx-platform'
COURSE_DATA
=
'/edx/var/edxapp/data'
COURSE_TARBALL
=
"scripts/data/test-course.tar.gz"
COURSE_ORG
=
"ora2"
COURSE_NUM
=
1
COURSE_RUN
=
1
COURSE_ID
=
"
$COURSE_ORG
/
$COURSE_NUM
/
$COURSE_RUN
"
echo
"Removing old test course..."
rm
-rf
$COURSE_DATA
/
$COURSE_RUN
rm
-rf
$COURSE_DATA
/
$COURSE_NUM
echo
"Done"
echo
"Decompressing test course"
tar
-C
$COURSE_DATA
-zxvf
"
$COURSE_TARBALL
"
echo
"Done"
echo
"Importing test course..."
SERVICE_VARIANT
=
cms python
$EDX_PLATFORM
/manage.py cms
\
import
$COURSE_DATA
$COURSE_RUN
--settings
aws
echo
"Done"
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