This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supervisorctl update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install supervisor in the pipy-local directory | |
cd /path/to/pipy-local | |
pip install supervisor | |
#create a standard configuration in this directory | |
echo_supervisord_conf > supervisord.conf | |
#run supervisor from this directory | |
supervisord |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:pypi-server] | |
command=pypi-server -p 8080 /path/to/pypi-local/packages | |
environment=PATH="/path/to/pypi-local/env/bin" | |
directory=/path/to/pypi-local | |
user=youruseraccount | |
autostart=true | |
autorestart=true | |
redirect_stderr=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a local directory for the pypi server | |
mkdir pypi-local | |
cd pypi-local | |
# Make a separate virtual environment for the pypi server | |
virtualenv env | |
source env/bin/activate | |
#install the pypiserver | |
pip install pypiserver | |
mkdir ./packages | |
# copy some source packages or eggs to this directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config:add BUILDPACK_URL=https://github.com/ToonTimbermont/heroku-buildpack-python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "-----> Installing via pip, but setting environment vars first." | |
export BLAS=$(pwd)/vendor/lib/atlas-base/atlas/libblas.a | |
export LAPACK=$(pwd)/vendor/lib/atlas-base/atlas/liblapack.a | |
export ATLAS=$(pwd)/vendor/lib/atlas-base/libatlas.a | |
export LIBRARY_PATH=$(pwd)/vendor/lib:$(pwd)/lib/atlas-base:$(pwd)/lib/atlas-base/atlas | |
export LD_LIBRARY_PATH=$(pwd)/vendor/lib:$(pwd)/vendor/lib/atlas-base:$(pwd)/vendor/lib/atlas-base/atlas | |
pip install --use-mirrors scikit-learn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push heroku master #update the code | |
heroku run python manage.py migrate myapp #update the database of <myapp> |