diff --git a/Dockerfile b/Dockerfile index fc4db8b..cefcfb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md deleted file mode 100644 index 29aa2cf..0000000 --- a/ISSUE_TEMPLATE.md +++ /dev/null @@ -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* diff --git a/_config.yml b/_config.yml deleted file mode 100644 index c419263..0000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-cayman \ No newline at end of file diff --git a/package.json b/package.json index b6bb128..5754c45 100644 --- a/package.json +++ b/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", diff --git a/seasoned_api/src/webserver/controllers/movie/info.js b/seasoned_api/src/webserver/controllers/movie/info.js index dc13ea3..5d31b7e 100644 --- a/seasoned_api/src/webserver/controllers/movie/info.js +++ b/seasoned_api/src/webserver/controllers/movie/info.js @@ -58,7 +58,7 @@ async function movieInfoController(req, res) { } else { console.log("Unkown error from plex!"); } - console.log(error); + console.log(error?.message); } }