1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
cowyo/install/install.sh
Zack Scholl 0326a61781 Added rudimentary install script
Former-commit-id: 1fd9e5140c14be645b8eb61cdd718ec4e6d606d4 [formerly eaca16b2be31938f5115ba3947f7605a842092f1] [formerly e30ad4f19a183e93879a6525cc556e1c5f179ea8 [formerly 107e20c283]]
Former-commit-id: e71c209ec2901c97c36f1dcee1824df31212febb [formerly 624054900645662b0b03123e124dfa59b78d240d]
Former-commit-id: 8bec9da01fd8c4c5a8ab2dadf4ef75b2494ca02f
2016-02-06 09:11:02 -05:00

11 lines
277 B
Bash
Executable File

apt-get update
apt-get install nginx
cp cowyo.nginx /etc/nginx/sites-available/
cp cowyo.init /etc/init.d/
ln -s /etc/nginx/sites-available/cowyo.nginx /etc/nginx/sites-enabled/cowyo.nginx
service nginx reload && service nginx restart
cd ../
go build
service cowyo.init start