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

Renamed things

Former-commit-id: c1ac3dff7cd98b431815a6867393683c04567470 [formerly 06230779a9c4f9fa0070a26062b43f787f258dce] [formerly a9a7f5db2062c986fa7c3a44f6c5cdaf1853083c [formerly 268f550d1d71847a35352780d53d0d4418661009 [formerly 7e1bd2081b]]]
Former-commit-id: b2fccfab3d9c08df25b7c5f00a01e003db82fe11 [formerly b1c31dbba1fecbd40ba7c8521101db5af70ff7d3]
Former-commit-id: 546f2ac1bf93f0306b18c93ff6ec89d583ef1520
Former-commit-id: 1bb73acaa8
This commit is contained in:
Zack Scholl 2016-02-10 09:09:33 -05:00
parent 21c934e991
commit 61bf3ac1a6
5 changed files with 9 additions and 19 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: cowyo # Provides: awwkoala
# Required-Start: $remote_fs $syslog # Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog # Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5 # Default-Start: 2 3 4 5
@ -12,15 +12,15 @@
# This should be placed in /etc/init.d directory # This should be placed in /etc/init.d directory
# start with # start with
# sudo /etc/init.d/cowyo start # sudo /etc/init.d/awwkoala start
# stop with # stop with
# sudo /etc/init.d/cowyo start # sudo /etc/init.d/awwkoala start
dir="CUR_DIR" dir="CUR_DIR"
user="USERCUR" user="USERCUR"
cmd="./cowyo -p :PORT EXT_ADDRESS" cmd="./awwkoala -p :PORT EXT_ADDRESS"
name="cowyo" name="awwkoala"
pid_file="/var/run/$name.pid" pid_file="/var/run/$name.pid"
stdout_log="/var/log/$name.log" stdout_log="/var/log/$name.log"
stderr_log="/var/log/$name.err" stderr_log="/var/log/$name.err"

View File

@ -1,9 +1,9 @@
server { server {
# SERVER BLOCK FOR cowyo # SERVER BLOCK FOR awwkoala
listen 80; ## listen for ipv4; this line is default and implied listen 80; ## listen for ipv4; this line is default and implied
access_log /etc/nginx/logs/access-cowyo.log; access_log /etc/nginx/logs/access-awwkoala.log;
error_log /etc/nginx/logs/error-cowyo.log info; error_log /etc/nginx/logs/error-awwkoala.log info;
root CUR_DIR; root CUR_DIR;
server_name ADDRESS; server_name ADDRESS;

View File

@ -1,10 +0,0 @@
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

View File

@ -9,7 +9,7 @@
<script src="/static/js/jquery.autogrowtextarea.min.js"></script> <script src="/static/js/jquery.autogrowtextarea.min.js"></script>
{{if .NoEdit}} {{else}} <script src="/static/js/cowyo.js"></script> {{end}} {{if .NoEdit}} {{else}} <script src="/static/js/websockets.js"></script> {{end}}
<script> <script>
external_ip = '{{ .ExternalIP }}' external_ip = '{{ .ExternalIP }}'