Skip to content

Commit

Permalink
[master][noticket][s]: Tidy up deploy process. Install pastescript in…
Browse files Browse the repository at this point in the history
…to virtualenv to make it easier for operator to run paste commands later on.
  • Loading branch information
David Read committed Jan 16, 2012
1 parent b772f52 commit 942d302
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckan_deb/usr/bin/ckan-create-instance
Expand Up @@ -10,7 +10,7 @@ fi

if [ $# -lt 3 ]
then
echo "ERROR: Expected two arguments (instance name, hostname, local database [yes or no]) eg."
echo "ERROR: Wrong number of arguments. Expected: (instance name, hostname, local database [yes or no]) e.g."
echo " $0 std std.ckan.org yes"
exit 1
fi
Expand Down
3 changes: 3 additions & 0 deletions ckan_deb/usr/lib/ckan/common.sh
Expand Up @@ -177,6 +177,9 @@ ckan_create_wsgi_handler () {
echo "Attempting to install 'pip' 1.0 from pypi.python.org into pyenv to be used for extensions ..."
sudo -u ckan${INSTANCE} /var/lib/ckan/${INSTANCE}/pyenv/bin/easy_install --upgrade "pip>=1.0" "pip<=1.0.99"
echo "done."
echo "Attempting to install 'paster' pypi.python.org into pyenv ..."
sudo -u ckan${INSTANCE} /var/lib/ckan/${INSTANCE}/pyenv/bin/easy_install --ignore-installed "pastescript"
echo "done."
cat <<- EOF > /var/lib/ckan/${INSTANCE}/packaging_version.txt
1.5
EOF
Expand Down

3 comments on commit 942d302

@flowma
Copy link
Contributor

@flowma flowma commented on 942d302 Nov 21, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't working! easy_install doesn't understand --ignore-installed do you mean pip install --ignore-installed ??

@davidread
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that would make more sense.

@flowma
Copy link
Contributor

@flowma flowma commented on 942d302 Nov 21, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll send a pull request once I've tested it...

Please sign in to comment.