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 7e1bd2081b
]]
Former-commit-id: b2fccfab3d9c08df25b7c5f00a01e003db82fe11 [formerly b1c31dbba1fecbd40ba7c8521101db5af70ff7d3]
Former-commit-id: 546f2ac1bf93f0306b18c93ff6ec89d583ef1520
This commit is contained in:
parent
4dfee02d10
commit
1bb73acaa8
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: cowyo
|
||||
# Provides: awwkoala
|
||||
# Required-Start: $remote_fs $syslog
|
||||
# Required-Stop: $remote_fs $syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
@ -12,15 +12,15 @@
|
||||
|
||||
# This should be placed in /etc/init.d directory
|
||||
# start with
|
||||
# sudo /etc/init.d/cowyo start
|
||||
# sudo /etc/init.d/awwkoala start
|
||||
# stop with
|
||||
# sudo /etc/init.d/cowyo start
|
||||
# sudo /etc/init.d/awwkoala start
|
||||
|
||||
dir="CUR_DIR"
|
||||
user="USERCUR"
|
||||
cmd="./cowyo -p :PORT EXT_ADDRESS"
|
||||
cmd="./awwkoala -p :PORT EXT_ADDRESS"
|
||||
|
||||
name="cowyo"
|
||||
name="awwkoala"
|
||||
pid_file="/var/run/$name.pid"
|
||||
stdout_log="/var/log/$name.log"
|
||||
stderr_log="/var/log/$name.err"
|
@ -1,9 +1,9 @@
|
||||
server {
|
||||
# SERVER BLOCK FOR cowyo
|
||||
# SERVER BLOCK FOR awwkoala
|
||||
listen 80; ## listen for ipv4; this line is default and implied
|
||||
|
||||
access_log /etc/nginx/logs/access-cowyo.log;
|
||||
error_log /etc/nginx/logs/error-cowyo.log info;
|
||||
access_log /etc/nginx/logs/access-awwkoala.log;
|
||||
error_log /etc/nginx/logs/error-awwkoala.log info;
|
||||
root CUR_DIR;
|
||||
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>
|
||||
{{if .NoEdit}} {{else}} <script src="/static/js/cowyo.js"></script> {{end}}
|
||||
{{if .NoEdit}} {{else}} <script src="/static/js/websockets.js"></script> {{end}}
|
||||
|
||||
<script>
|
||||
external_ip = '{{ .ExternalIP }}'
|
||||
|
Loading…
Reference in New Issue
Block a user