Running tests no docker - Documentation

This commit is contained in:
2022-06-05 07:54:08 +02:00
parent 58a3d042ba
commit cd46524019
6 changed files with 80 additions and 35 deletions

View File

@ -1,9 +0,0 @@
# minimalist Nodejs server for mydraft application (https:/mydraft.cc)
## Swagger
## Installation (Docker)
## Execute
pay **ATTENTION**

0
server/build/.gitkeep Normal file
View File

20
server/start.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
## those dirs are needed
pwd
for dir in "data logs"
do
if [ -d "$dir" ];then mkdir "$dir";fi
done
# Where is node or nodejs (alpine <> debian)
NODEJS="/usr/bin/nodejs"
if [ ! -f "$NODEJS" ];then
NODEJS="/usr/bin/node"
fi
## Start application
# Parameters
# listening ip address
# listening port
# Storage: maximum size of the drawing file
# (2Mo : 2 * 1024 * 1024) = 2097152
IPADDRESS=0.0.0.0 PORT=4000 JSONMAXSIZE=2097152 $NODEJS app.js