Commit 44f016e6 authored by lerma artemix's avatar lerma artemix
Browse files

Adds samp directory to static directories available from nodejs, adds it...

Adds samp directory to static directories available from nodejs, adds it inside the yafitsv container where symbolic link was missing
parent 45dab21f
......@@ -93,6 +93,12 @@ RUN ln -sf /home/partemix/dataroot/SMOOTH /home/partemix/yafitsv/smooth
#create link for the server IMG directory
RUN ln -sf /home/partemix/dataroot/IMG /home/partemix/yafitsv/img
#create link for the server IMG directory
RUN ln -sf /home/partemix/dataroot/IMG /home/partemix/yafitsv/img
#create link for the server SAMP directory
RUN ln -sf /home/partemix/dataroot/SAMP /home/partemix/yafitsv/samp
# Copy app source to image _after_ npm install so that
# application code changes don't bust the docker cache of npm install step
COPY --chown=partemix:partemix . /home/partemix/yafitsv
......
......@@ -42,12 +42,15 @@ app.set('view engine', 'ejs');
//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
//app.use(morgan('combined', { stream: myLogFileStream }))
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
// defines static paths in which fiels can be found (png, fits)
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'png')));
app.use(express.static(path.join(__dirname, 'samp')));
app.use(express.static(path.join(__dirname, 'node_modules')));
app.use(express.static(path.join(__dirname, 'smooth')));
app.use(express.static(path.join(__dirname, 'img')));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment