1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Finalized makefile and install instructions

Former-commit-id: e62ce015320b8e1c1536f8665a0662a0884e5342 [formerly d2db21b71f3ec697fe1604dbb3a09198e07e3654] [formerly e57dd68fbed6b59ad3f6be9c5e4b479dfb447cd1 [formerly 73f500b4d3]]
Former-commit-id: e7f6b9d710814a0653aefd5371061de64f26e749 [formerly 2a78037d302a7e7e0d0f07b178ff0f01593d5cbb]
Former-commit-id: b9b8ee1b0ea53202e901bee323e686bde537835a
This commit is contained in:
Zack Scholl 2016-02-08 13:00:23 -05:00
parent 5a407dd408
commit a8802d54fb
2 changed files with 32 additions and 4 deletions

View File

@ -23,7 +23,7 @@ install:
chmod +x /etc/init.d/cowyo.init chmod +x /etc/init.d/cowyo.init
mv jinstall/cowyo.nginx /etc/nginx/sites-available/cowyo.nginx mv jinstall/cowyo.nginx /etc/nginx/sites-available/cowyo.nginx
rm /etc/nginx/sites-enabled/cowyo.nginx rm /etc/nginx/sites-enabled/cowyo.nginx
ln -s /etc/nginx-sites-available/cowyo.nginx /etc/nginx/sites-enabled/cowyo.nginx ln -fs /etc/nginx/sites-available/cowyo.nginx /etc/nginx/sites-enabled/cowyo.nginx
/etc/init.d/nginx reload /etc/init.d/nginx reload
/etc/init.d/nginx restart /etc/init.d/nginx restart
/etc/init.d/cowyo.init restart /etc/init.d/cowyo.init restart

View File

@ -16,11 +16,39 @@ Be cautious about writing sensitive information in the notes as anyone with the
# Install # Install
`go install github.com/schollz/cowyo` To get started on your local network just do:
```
git clone https://github.com/schollz/cowyo.git
cd cowyo
make
./cowyo -p :8001 LOCALIPADDRESS
```
and then goto the address `http://LOCALIPADDRESS:8001/`
## Production server ## Production server
I recommend using `NGINX` as middleware, as it will do caching of the static files for you. There is an example `NGINX` block in `install/`. I recommend using `NGINX` as middleware, as it will do caching of the static files for you. There is an example `NGINX` block in `install/`. To automatically install, on Raspberry Pi / Ubuntu / Debian system use:
```
git clone https://github.com/schollz/cowyo.git
cd cowyo
nano Makefile <--- EDIT Makefile to include YOUR EXTERNAL ADDRESS
make && sudo make install
```
Now the program starts and stops with
```
sudo /etc/init.d/cowyo start|stop|restart
```
Edit your crontab (`sudo crontab -e`) to start on boot:
```
@reboot /etc/init.d/cowyo start
```
# Usage # Usage