added down message to staging
This commit is contained in:
parent
a495b99bc5
commit
0fc95da317
21
create.sh
21
create.sh
@ -4,18 +4,6 @@ sshURL="$2"
|
|||||||
nodePort=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`
|
nodePort=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`
|
||||||
workingPath=/var/www/gitwrapper/$name
|
workingPath=/var/www/gitwrapper/$name
|
||||||
|
|
||||||
|
|
||||||
echo "creating apache VirtualHost file"
|
|
||||||
|
|
||||||
echo "<VirtualHost *:80>" > /etc/apache2/sites-enabled/$name.conf
|
|
||||||
echo " ServerName $name.staging.bytedev.co" >> /etc/apache2/sites-enabled/$name.conf
|
|
||||||
echo " DocumentRoot $workingPath/static/error_pages" >> /etc/apache2/sites-enabled/$name.conf
|
|
||||||
|
|
||||||
echo "</VirtualHost>" >> /etc/apache2/sites-enabled/$name.conf
|
|
||||||
|
|
||||||
/usr/sbin/service apache2 reload
|
|
||||||
|
|
||||||
|
|
||||||
echo "starting $sshURL on $name"
|
echo "starting $sshURL on $name"
|
||||||
|
|
||||||
eval "$(ssh-agent -s)"
|
eval "$(ssh-agent -s)"
|
||||||
@ -35,6 +23,15 @@ export djangoURL="http://$name.staging.bytedev.co"
|
|||||||
|
|
||||||
git clone $sshURL .
|
git clone $sshURL .
|
||||||
|
|
||||||
|
echo "creating apache VirtualHost file and showing down"
|
||||||
|
|
||||||
|
echo "<VirtualHost *:80>" > /etc/apache2/sites-enabled/$name.conf
|
||||||
|
echo " ServerName $name.staging.bytedev.co" >> /etc/apache2/sites-enabled/$name.conf
|
||||||
|
echo " DocumentRoot $workingPath/static/error_pages" >> /etc/apache2/sites-enabled/$name.conf
|
||||||
|
echo "</VirtualHost>" >> /etc/apache2/sites-enabled/$name.conf
|
||||||
|
|
||||||
|
/usr/sbin/service apache2 reload
|
||||||
|
|
||||||
./scripts/setup.sh
|
./scripts/setup.sh
|
||||||
|
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user