mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Renamed things
This commit is contained in:
parent
9907a01c0e
commit
7e1bd2081b
@ -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"
|
@ -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;
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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 }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user