Fixed symlink

master
Ringo Watanabe 6 years ago
parent adf885a772
commit 6eb598189b

1
.gitignore vendored

@ -1,2 +1,3 @@
backend/ backend/
rtbwn.sock rtbwn.sock
rtbwn.pid

@ -1,4 +1,3 @@
rtbwpy rtbwpy
node.js node.js
ws node module ws node module

@ -1,8 +1,9 @@
Set your reverse proxy to serve www/ statically. Set your reverse proxy to serve www/ statically.
Symlink interop.js to www/js/cyclefunc.js if it is not already.
Edit config.js to specify the parameters of the node (api) server, and Edit config.js to specify the parameters of the node (api) server, and
point it to the backend (rtbwpy) point it to the backend (rtbwpy)
Set your reverse proxy to pass config.BASE_URL* to the node server (make Set your reverse proxy to pass config.BASE_URL* to the node server (make
sure websockets are sent too) sure websockets are sent too)
Edit www/js/client.js to point to the correct api location. Edit www/js/client.js to point to the correct api location.
Start the backend (rtbwpy) in daemon mode. Start the backend (rtbwpy) in daemon mode.
Start the node server Start the node server with ./maintain/start.sh or with node main.js

@ -65,3 +65,21 @@ em {
.ctlcont { .ctlcont {
padding-top: 4px; padding-top: 4px;
} }
.footer {
font-style: italic;
font-family: Tahoma;
font-size:9pt;
}
.footer a {
color: #f5f8f6
}
.footer a:link {
color: rgb(102, 255, 255)
}
.footer a:visited {
color: rgb(204, 255, 102)
}

@ -175,7 +175,12 @@
</div> </div>
<div class='ctlcont'><input id='cytb_purge' type='button' value='Purge' /> Rollover at: <input type='textbox' id='cytb_rlat' /> <em id='e_rlat' class='error'></em></div> <div class='ctlcont'><input id='cytb_purge' type='button' value='Purge' /> Rollover at: <input type='textbox' id='cytb_rlat' /> <em id='e_rlat' class='error'></em></div>
</div> </div>
<hr></hr>
<div class='footer'>
<p>Backend source: <a target=_blank href='https://github.com/notflan/rtbwpy'>rtbwpy</a><br />
Frontend source: <a title=" As it stands the code is, frankly, embarrassingly bad and is in need of a lot of refactoring.">I will release this when it is of an acceptable quality.</a></p>
<em>This page is served statically.</em>
</div>
<script src="js/cyclefunc.js"></script> <script src="js/cyclefunc.js"></script>
<script src="js/client.js"></script> <script src="js/client.js"></script>

@ -1 +1 @@
/home/flandre/srv/rtbw/interop.js ../../interop.js

@ -209,8 +209,10 @@ function updateSection(gr, pfx, allTime, allTimeAverage,data=null)
if(!$(gr.anamedpie.options.showAnon).is(":checked")) { if(!$(gr.anamedpie.options.showAnon).is(":checked")) {
for(var i in nshare) for(var i in nshare)
if(nshare[i]["key"] == "Anonymous") if(nshare[i]["key"] == "Anonymous") {
delete nshare[i]; delete nshare[i];
break;
}
} }
for(var i in nshare) for(var i in nshare)
{ {

Loading…
Cancel
Save