mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 05:57:07 +00:00
Add scripts to launch Dougal services in production
This commit is contained in:
1
lib/www/server/index.js
Normal file → Executable file
1
lib/www/server/index.js
Normal file → Executable file
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/node
|
||||
|
||||
const api = require('./api');
|
||||
const ws = require('./ws');
|
||||
|
||||
2
lib/www/server/udp/server.js
Normal file → Executable file
2
lib/www/server/udp/server.js
Normal file → Executable file
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/node
|
||||
|
||||
const dgram = require('dgram');
|
||||
const cfg = require("../lib/config");
|
||||
const { navdata } = require('../lib/db');
|
||||
|
||||
4
sbin/start-api.sh
Executable file
4
sbin/start-api.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ~/.profile
|
||||
/srv/dougal/software/lib/www/server/index.js
|
||||
5
sbin/start-rti.sh
Executable file
5
sbin/start-rti.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ~/.profile
|
||||
/srv/dougal/software/lib/www/server/udp/server.js
|
||||
|
||||
Reference in New Issue
Block a user