stuff
This commit is contained in:
parent
b54d5533c9
commit
260881acd7
@ -4,10 +4,10 @@ name="$1"
|
|||||||
sshURL="$2"
|
sshURL="$2"
|
||||||
|
|
||||||
eval "$(ssh-agent -s)"
|
eval "$(ssh-agent -s)"
|
||||||
ssh-add /root/.ssh/github_rsa
|
ssh-add /root/.ssh/id_github_rsa
|
||||||
cd /var/www/gitwrapper
|
mkdir /var/www/gitwrapper/$name
|
||||||
mkdir $name
|
cd /var/www/gitwrapper/$name
|
||||||
cd $name
|
echo pwd
|
||||||
|
|
||||||
git clone $sshURL .
|
git clone $sshURL .
|
||||||
git checkout $name
|
git checkout $name
|
||||||
@ -25,12 +25,12 @@ python3 manage.py migrate
|
|||||||
chmod 777 .
|
chmod 777 .
|
||||||
chmod 777 db.sqlite3
|
chmod 777 db.sqlite3
|
||||||
|
|
||||||
echo '<VirtualHost *:80>' > /etc/apache2/sites-enabled/runner.conf
|
echo "<VirtualHost *:80>" > /etc/apache2/sites-enabled/$name.conf
|
||||||
echo ' Alias /static /var/www/gitwrapper/$name/staticfiles' > /etc/apache2/sites-enabled/runner.conf
|
echo " Alias /static /var/www/gitwrapper/$name/staticfiles" > /etc/apache2/sites-enabled/$name.conf
|
||||||
echo ' WSGIDaemonProcess $name python-path=/var/www/gitwrapper/$name:/var/www/gitwrapper/$name/env/lib/python3.4/site-packages' >> /etc/apache2/sites-enabled/runner.conf
|
echo " WSGIDaemonProcess $name python-path=/var/www/gitwrapper/$name:/var/www/gitwrapper/$name/env/lib/python3.4/site-packages" >> /etc/apache2/sites-enabled/$name.conf
|
||||||
echo ' WSGIProcessGroup $name' >> /etc/apache2/sites-enabled/runner.conf
|
echo " WSGIProcessGroup $name" >> /etc/apache2/sites-enabled/$name.conf
|
||||||
echo ' WSGIScriptAlias / /var/www/gitwrapper/$name/project/wsgi.py' >> /etc/apache2/sites-enabled/runner.conf
|
echo " WSGIScriptAlias / /var/www/gitwrapper/$name/project/wsgi.py" >> /etc/apache2/sites-enabled/$name.conf
|
||||||
echo '</VirtualHost>' >> /etc/apache2/sites-enabled/runner.conf
|
echo "</VirtualHost>" >> /etc/apache2/sites-enabled/$name.conf
|
||||||
|
|
||||||
|
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user