Copy folder seasoned_api not just contents, matches project structure
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
FROM node:18
|
||||
|
||||
RUN mkdir -p /opt/seasonedShows
|
||||
RUN mkdir -p /opt/seasonedShows/seasoned_api
|
||||
|
||||
WORKDIR /opt/seasonedShows
|
||||
|
||||
COPY seasoned_api/ .
|
||||
COPY seasoned_api/ seasoned_api
|
||||
COPY package.json .
|
||||
|
||||
RUN apt update
|
||||
RUN apt install node-pre-gyp -y
|
||||
RUN yarn
|
||||
RUN cp conf/development.json.example conf/development.json
|
||||
RUN cp seasoned_api/conf/development.json.example seasoned_api/conf/development.json
|
||||
|
||||
EXPOSE 31459
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
## What kind of an issue is this?
|
||||
|
||||
- [ ] Bug report
|
||||
- [ ] Feature request
|
||||
|
||||
## Expected behaviour?
|
||||
|
||||
|
||||
## Current behaviour?
|
||||
*if this is a bug report*
|
||||
|
||||
|
||||
## Steps to reproduce behaviour?
|
||||
*if this is a bug report*
|
||||
|
||||
|
||||
## Screenshot? 📷
|
||||
*A image tells a thousands words*
|
||||
@@ -1 +0,0 @@
|
||||
theme: jekyll-theme-cayman
|
||||
14
package.json
14
package.json
@@ -5,16 +5,16 @@
|
||||
"type": "MIT",
|
||||
"url": "https://www.opensource.org/licenses/mit-license.php"
|
||||
},
|
||||
"main": "seasoned_api/webserver/server.js",
|
||||
"main": "webserver/server.js",
|
||||
"scripts": {
|
||||
"start": "yarn --cwd seasoned_api cross-env SEASONED_CONFIG=conf/development.json NODE_ENV=production babel-node seasoned_api/src/webserver/server.js",
|
||||
"test": "cross-env SEASONED_CONFIG=seasoned_api/conf/test.json NODE_PATH=. mocha --require @babel/register --recursive seasoned_api/test/unit seasoned_api/test/system",
|
||||
"coverage": "cross-env SEASONED_CONFIG=seasoned_api/conf/test.json NODE_PATH=. nyc mocha --require @babel/register --recursive test && nyc report --reporter=text-lcov | coveralls",
|
||||
"lint": "eslint src/",
|
||||
"update": "cross-env SEASONED_CONFIG=seasoned_api/conf/development.json NODE_PATH=. node seasoned_api/scripts/updateRequestsInPlex.js",
|
||||
"start": "yarn cross-env SEASONED_CONFIG=conf/development.json NODE_ENV=production babel-node seasoned_api/src/webserver/server.js",
|
||||
"test": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. mocha --require @babel/register --recursive seasoned_api/test/unit seasoned_api/test//system",
|
||||
"coverage": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. nyc mocha --require @babel/register --recursive test && nyc report --reporter=text-lcov | coveralls",
|
||||
"lint": "eslint seasoned_api/src",
|
||||
"update": "cross-env SEASONED_CONFIG=conf/development.json NODE_PATH=. node seasoned_api/scripts/updateRequestsInPlex.js",
|
||||
"docs": "yarn apiDocs; yarn classDocs",
|
||||
"apiDocs": "",
|
||||
"classDocs": "./seasoned_api/script/generate-class-docs.sh"
|
||||
"classDocs": "seasoned_api/script/generate-class-docs.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.18.0",
|
||||
|
||||
@@ -58,7 +58,7 @@ async function movieInfoController(req, res) {
|
||||
} else {
|
||||
console.log("Unkown error from plex!");
|
||||
}
|
||||
console.log(error);
|
||||
console.log(error?.message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user