Quick fixes

master
Keith Irwin 2017-03-05 16:58:30 -05:00
parent 071916433d
commit df1dde35e0
7 changed files with 22 additions and 8 deletions

View File

@ -1,6 +1,5 @@
var router = require('express').Router(),
mw = require('../middleware.js'),
secret = require('../secrets.js'),
User = require('../models/user.js');
router.route('/')

View File

@ -39,7 +39,7 @@
"dev": "nodemon server.js",
"deploy": "ssh -t khp 'rsync -aP --delete --exclude-from /srv/tracman/.gitignore --exclude .git kptow:/srv/c9/tracman/ /srv/tracman && sudo systemctl reload-or-restart tracman'",
"drydeploy": "rsync --dry-run -vaP --delete --exclude-from /srv/c9/tracman/.gitignore --exclude .git /srv/c9/tracman/ khp:/srv/tracman",
"revert": "ssh -t khp 'rsync -aP --delete --exclude-from /srv/tracman/.gitignore --exclude .git /srv/tracman/ kptow:/srv/c9/tracman && sudo systemctl reload-or-restart tracman'",
"revert": "ssh -t khp 'rsync -aP --delete --exclude-from /srv/tracman/.gitignore --exclude .git /srv/tracman/ kptow:/srv/c9/tracman'",
"dryrevert": "rsync --dry-run -vaP --delete --exclude-from /srv/c9/tracman/.gitignore --exclude .git khp:/srv/tracman/ /srv/c9/tracman",
"log": "ssh -t khp 'journalctl -u tracman'",
"restart": "ssh -t khp 'sudo systemctl reload-or-restart tracman'"

0
server.js Normal file → Executable file
View File

0
test.js Normal file → Executable file
View File

View File

@ -321,8 +321,10 @@
</div>
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script src="/static/js/bundle.js"></script>
<!--<script src="/static/js/socket.io-1.2.0.js"></script>-->
<!--<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.2.0/socket.io.min.js" integrity="sha256-N5fOxBkRkV1GAo/HPKsmtrhO9phIOnBGqCqsXUsRLeI=" crossorigin="anonymous"></script>
<!--<script src="/static/js/bundle.js"></script>-->
<script src="https://maps.googleapis.com/maps/api/js?key={{api}}&callback=gmapsCb" async defer></script>
<script>

View File

@ -49,6 +49,7 @@
{% block main %}Loading... {% endblock %}
{% if not noFooter %}{% include 'templates/footer.html' %}{% endif %}
<!-- Google Analytics -->
<script>
(function(t,r,a,c,m,o,n){t['GoogleAnalyticsObject']=m;t[m]=t[m]||function(){
(t[m].q=t[m].q||[]).push(arguments);},t[m].l=1*new Date();o=r.createElement(a),
@ -59,6 +60,18 @@
ga('require','linkid');
ga('send','pageview');
</script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/3.7.0/firebase.js"></script>
<script>
firebase.initializeApp({
apiKey: "AIzaSyDPYY_Fw3FXLm0hKfIfc8qlrc98zZiN4IY",
authDomain: "tracman-b894f.firebaseapp.com",
databaseURL: "https://tracman-b894f.firebaseio.com",
storageBucket: "tracman-b894f.appspot.com",
messagingSenderId: "483494341936"
});
</script>
</body>
</html>

View File

@ -27,10 +27,10 @@
</header>
<!-- Sitewide notificaton -->
<div class='header alert alert-warning alert-dismissible'>
<strong>Tracman is going through a server migration and various technical issues. Sorry for the inconvienence! <br>You can encourage me to work on it by <a href="https://cash.me/$KeithIrwin">making a donation</a>.
<!--<div class='header alert alert-warning alert-dismissible'>
<strong>Whoops!</strong> Tracman down right now. It will be fixed in a few days.
<a href="#" class='close' data-dismiss="alert" aria-label="close"><i class='fa fa-times'></i></a>
</div>
</div>-->
{% if error %}
<div class='header alert alert-danger alert-dismissible'>
@ -42,4 +42,4 @@
<strong><i class="fa fa-check-circle"></i> Success!</strong> {{ success | safe }}
<a href="#" class='close' data-dismiss="alert" aria-label="close"><i class='fa fa-times'></i></a>
</div>
{% endif %}
{% endif %}