Created
May 7, 2018 08:34
-
-
Save knil-sama/cd938f9084844f097874b314f013a9c0 to your computer and use it in GitHub Desktop.
This file contains 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
sudo yum install -y python34 python34-pip httpd-tools | |
sudo python3 -m pip install pypiserver passlib | |
# input password manualy for this one | |
htpasswd -sc htpasswd.txt data-packages-user | |
mkdir ~/packages | |
# need to be root, sudo didn't work do sudo su | |
echo " | |
description 'A minimal PyPI server for use with pip/easy_install.' | |
author 'Clement Demonchy' | |
start on runlevel [2345] | |
exec /usr/local/bin/pypi-server --overwrite -p 8080 -a update,download --log-file /var/log/pypiserver.log -P /home/ec2-user/htpasswd.txt /home/ec2-user/packages | |
" > /etc/init/pypi_server.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment