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
445ce72b
Commit
445ce72b
authored
Aug 17, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Leave management of services and package installation to puppet
parent
656ee847
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
rakefile
+0
-30
No files found.
rakefile
View file @
445ce72b
...
...
@@ -25,7 +25,6 @@ PACKAGE_REPO = "packages@gp.mitx.mit.edu:/opt/pkgrepo.incoming"
NORMALIZED_DEPLOY_NAME
=
DEPLOY_NAME
.
downcase
().
gsub
(
/[_\/]/
,
'-'
)
INSTALL_DIR_PATH
=
File
.
join
(
DEPLOY_DIR
,
NORMALIZED_DEPLOY_NAME
)
PIP_REPO_REQUIREMENTS
=
"
#{
INSTALL_DIR_PATH
}
/repo-requirements.txt"
# Set up the clean and clobber tasks
CLOBBER
.
include
(
BUILD_DIR
,
REPORT_DIR
,
'cover*'
,
'.coverage'
,
'test_root/*_repo'
,
'test_root/staticfiles'
)
CLEAN
.
include
(
"
#{
BUILD_DIR
}
/*.deb"
,
"
#{
BUILD_DIR
}
/util"
)
...
...
@@ -193,36 +192,7 @@ task :package do
afterremove
.
close
()
FileUtils
.
chmod
(
0755
,
afterremove
.
path
)
postinstall
=
Tempfile
.
new
(
'postinstall'
)
postinstall
.
write
<<-
POSTINSTALL
.
gsub
(
/^\s*/
,
''
)
#! /bin/sh
set -e
set -x
service gunicorn stop || echo "Unable to stop gunicorn. Continuing"
rm -f
#{
LINK_PATH
}
ln -s
#{
INSTALL_DIR_PATH
}
#{
LINK_PATH
}
chown makeitso:makeitso
#{
LINK_PATH
}
# install python modules that are in the package
if [ -r
#{
PIP_REPO_REQUIREMENTS
}
]; then
cd
#{
INSTALL_DIR_PATH
}
pip install -r
#{
PIP_REPO_REQUIREMENTS
}
fi
chown -R makeitso:makeitso
#{
INSTALL_DIR_PATH
}
# Delete mako temp files
rm -rf /tmp/tmp*mako
service gunicorn start || echo "Unable to start gunicorn. Continuing"
POSTINSTALL
postinstall
.
close
()
FileUtils
.
chmod
(
0755
,
postinstall
.
path
)
args
=
[
"fakeroot"
,
"fpm"
,
"-s"
,
"dir"
,
"-t"
,
"deb"
,
"--after-install=
#{
postinstall
.
path
}
"
,
"--after-remove=
#{
afterremove
.
path
}
"
,
"--prefix=
#{
INSTALL_DIR_PATH
}
"
,
"--exclude=**/build/**"
,
...
...
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