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
d687a2ae
Commit
d687a2ae
authored
Jun 20, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #208 from edx/cale/create-dev-env-fixes
Cale/create dev env fixes
parents
e84ee873
fc604387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
scripts/create-dev-env.sh
+12
-11
No files found.
scripts/create-dev-env.sh
View file @
d687a2ae
...
...
@@ -73,7 +73,7 @@ change_git_push_defaults() {
#Set git push defaults to upstream rather than master
output
"Changing git defaults"
git config
--global
push.default upstream
}
clone_repos
()
{
...
...
@@ -206,10 +206,10 @@ case `uname -s` in
distro
=
`
lsb_release
-cs
`
case
$distro
in
wheezy|jessie|maya|olivia|nadia|precise|quantal
)
wheezy|jessie|maya|olivia|nadia|precise|quantal
)
warning
"
Debian support is not fully debugged. Assuming you have standard
development packages already working like scipy rvm, the
development packages already working like scipy rvm, the
installation should go fine, but this is still a work in progress.
Please report issues you have and let us know if you are able to figure
...
...
@@ -218,7 +218,7 @@ case `uname -s` in
Press return to continue or control-C to abort"
read
dummy
sudo
apt-get install git
;;
sudo
apt-get install git
;;
squeeze|lisa|katya|oneiric|natty|raring
)
warning
"
It seems like you're using
$distro
which has been deprecated.
...
...
@@ -231,7 +231,7 @@ case `uname -s` in
Press return to continue or control-C to abort"
read
dummy
sudo
apt-get install git
;;
;;
*
)
error
"Unsupported distribution -
$distro
"
...
...
@@ -283,7 +283,7 @@ clone_repos
if
[[
-d
$BASE
/edx-platform/scripts
]]
;
then
output
"Installing system-level dependencies"
bash
$BASE
/edx-platform/scripts/install-system-req.sh
else
else
error
"It appears that our directory structure has changed and somebody failed to update this script.
raise an issue on Github and someone should fix it."
exit
1
...
...
@@ -314,14 +314,14 @@ case `uname -s` in
[
Ll]inux
)
warning
"Setting up rvm on linux. This is a known pain point. If the script fails here
refer to the following stack overflow question:
refer to the following stack overflow question:
http://stackoverflow.com/questions/9056008/installed-ruby-1-9-3-with-rvm-but-command-line-doesnt-show-ruby-v/9056395#9056395"
sudo
apt-get
--purge
remove ruby-rvm
sudo
rm
-rf
/usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
curl
-sL
https://get.rvm.io | bash
-s
stable
--ruby
--autolibs
=
enable
--auto-dotfiles
;;
esac
# Ensure we have RVM available as a shell function so that it can mess
# with the environment and set everything up properly. The RVM install
...
...
@@ -494,10 +494,11 @@ cd $BASE
pip install argcomplete
cd
$BASE
/edx-platform
bundle install
rake install_prereqs
mkdir
"
$BASE
/log"
||
true
mkdir
"
$BASE
/db"
||
true
mkdir
"
$BASE
/data"
||
true
mkdir
-p
"
$BASE
/log"
mkdir
-p
"
$BASE
/db"
mkdir
-p
"
$BASE
/data"
rake django-admin[syncdb]
rake django-admin[migrate]
...
...
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