In the same directory, run tsc to compile the .ts server into a .js server
Return to the root directory and run pm2 start ecosystem.config.js to start the server with PM2
Run pm2 log 0 to view the server logs in the terminal
Open a new terminal and cd into the dashboard folder
Run npm i here as well
Run npm start to launch the dashboard in a browser tab. The dashboard should now display "connected bus". If not, refer to the line after step 10. As of right now the dashboard works best in chrome so to open it there you can run BROWSER=chrome npm start.
The terminal in which you ran pm2 log 0 should now show logs about a user logging in
To close and reopen the dashboard connection repeatedly for testing, hit the refresh button on the dashboard browser tab a few times while checking the pm2 log 0 terminal for output logs
If you never see the following in the log terminal, the fix was successful:
If you encounter any errors with pm2 start, npm i, tsc, or if the dashboard does not display "connected bus" when launching it after starting the server, follow these possible fixes:
Ensure that you have pm2, npm, node, and typescript (tsc) installed globally. You can check the versions of each by running pm2 -v, npm -v, tsc -v, and node -v.
If the dashboard did not display "connected bus", refer to the last section of the instructions on the dashboard page in the wiki.
If there are errors when running tsc and tsc is definitely installed, message me on Discord. This is because of differing npm versions causing issues when installing certain outdated packages.
To test/review, follow these steps:
cd
into the Server folder and runnpm i
tsc
to compile the .ts server into a .js serverpm2 start ecosystem.config.js
to start the server with PM2pm2 log 0
to view the server logs in the terminalcd
into the dashboard foldernpm i
here as wellnpm start
to launch the dashboard in a browser tab. The dashboard should now display "connected bus". If not, refer to the line after step 10. As of right now the dashboard works best in chrome so to open it there you can runBROWSER=chrome npm start
.pm2 log 0
should now show logs about a user logging inpm2 log 0
terminal for output logsIf you encounter any errors with
pm2 start
,npm i
,tsc
, or if the dashboard does not display "connected bus" when launching it after starting the server, follow these possible fixes:pm2 -v
,npm -v
,tsc -v
, andnode -v
.Fixes #3