diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..43f5b69 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM keymetrics/pm2:latest-alpine + +# Bundle APP files +COPY src src/ +COPY package.json . +COPY pm2.json . + +# Install app dependencies +ENV NPM_CONFIG_LOGLEVEL warn +RUN npm install --production + +# Show current folder structure in logs +RUN ls -al -R + +CMD [ "pm2-runtime", "start", "pm2.json" ] diff --git a/mksec.txt b/mksec.txt deleted file mode 100644 index f5400bf..0000000 --- a/mksec.txt +++ /dev/null @@ -1,2 +0,0 @@ -license It also lists 23 cars, trucks, SUVs and other vehicles, and a box containing more than 60 license plates from "various states." -copyright And copyright notwithstanding, I look forward to the reception of future all-white productions! diff --git a/package.json b/package.json index bde27f2..00246da 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "mksec", "version": "2.1.0", - "main": "index.js", + "main": "src/index.js", "repository": "git@github.com:IoTcat/sentence-generator.git", "author": "iotcat ", "license": "MIT", "bin": { - "mksec": "mksec" + "mksec": "src/mksec" }, "dependencies": { "body-parser": "^1.19.0", diff --git a/pm2.json b/pm2.json new file mode 100644 index 0000000..2b8b14d --- /dev/null +++ b/pm2.json @@ -0,0 +1,11 @@ +{ + "name": "mksec", + "script": "src/server.js", + "instances": "2", + "env": { + "NODE_ENV": "development" + }, + "env_production" : { + "NODE_ENV": "production" + } +} diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js diff --git a/mksec b/src/mksec similarity index 100% rename from mksec rename to src/mksec diff --git a/public/css/awsm.css b/src/public/css/awsm.css similarity index 100% rename from public/css/awsm.css rename to src/public/css/awsm.css diff --git a/public/css/awsm.min.css b/src/public/css/awsm.min.css similarity index 100% rename from public/css/awsm.min.css rename to src/public/css/awsm.min.css diff --git a/public/css/awsm_sealed.css b/src/public/css/awsm_sealed.css similarity index 100% rename from public/css/awsm_sealed.css rename to src/public/css/awsm_sealed.css diff --git a/public/css/awsm_sealed.min.css b/src/public/css/awsm_sealed.min.css similarity index 100% rename from public/css/awsm_sealed.min.css rename to src/public/css/awsm_sealed.min.css diff --git a/public/css/awsm_theme_big-stone._sealed.css b/src/public/css/awsm_theme_big-stone._sealed.css similarity index 100% rename from public/css/awsm_theme_big-stone._sealed.css rename to src/public/css/awsm_theme_big-stone._sealed.css diff --git a/public/css/awsm_theme_big-stone._sealed.min.css b/src/public/css/awsm_theme_big-stone._sealed.min.css similarity index 100% rename from public/css/awsm_theme_big-stone._sealed.min.css rename to src/public/css/awsm_theme_big-stone._sealed.min.css diff --git a/public/css/awsm_theme_big-stone.css b/src/public/css/awsm_theme_big-stone.css similarity index 100% rename from public/css/awsm_theme_big-stone.css rename to src/public/css/awsm_theme_big-stone.css diff --git a/public/css/awsm_theme_big-stone.min.css b/src/public/css/awsm_theme_big-stone.min.css similarity index 100% rename from public/css/awsm_theme_big-stone.min.css rename to src/public/css/awsm_theme_big-stone.min.css diff --git a/public/css/awsm_theme_black._sealed.css b/src/public/css/awsm_theme_black._sealed.css similarity index 100% rename from public/css/awsm_theme_black._sealed.css rename to src/public/css/awsm_theme_black._sealed.css diff --git a/public/css/awsm_theme_black._sealed.min.css b/src/public/css/awsm_theme_black._sealed.min.css similarity index 100% rename from public/css/awsm_theme_black._sealed.min.css rename to src/public/css/awsm_theme_black._sealed.min.css diff --git a/public/css/awsm_theme_black.css b/src/public/css/awsm_theme_black.css similarity index 100% rename from public/css/awsm_theme_black.css rename to src/public/css/awsm_theme_black.css diff --git a/public/css/awsm_theme_black.min.css b/src/public/css/awsm_theme_black.min.css similarity index 100% rename from public/css/awsm_theme_black.min.css rename to src/public/css/awsm_theme_black.min.css diff --git a/public/css/awsm_theme_gondola._sealed.css b/src/public/css/awsm_theme_gondola._sealed.css similarity index 100% rename from public/css/awsm_theme_gondola._sealed.css rename to src/public/css/awsm_theme_gondola._sealed.css diff --git a/public/css/awsm_theme_gondola._sealed.min.css b/src/public/css/awsm_theme_gondola._sealed.min.css similarity index 100% rename from public/css/awsm_theme_gondola._sealed.min.css rename to src/public/css/awsm_theme_gondola._sealed.min.css diff --git a/public/css/awsm_theme_gondola.css b/src/public/css/awsm_theme_gondola.css similarity index 100% rename from public/css/awsm_theme_gondola.css rename to src/public/css/awsm_theme_gondola.css diff --git a/public/css/awsm_theme_gondola.min.css b/src/public/css/awsm_theme_gondola.min.css similarity index 100% rename from public/css/awsm_theme_gondola.min.css rename to src/public/css/awsm_theme_gondola.min.css diff --git a/public/css/awsm_theme_mischka._sealed.css b/src/public/css/awsm_theme_mischka._sealed.css similarity index 100% rename from public/css/awsm_theme_mischka._sealed.css rename to src/public/css/awsm_theme_mischka._sealed.css diff --git a/public/css/awsm_theme_mischka._sealed.min.css b/src/public/css/awsm_theme_mischka._sealed.min.css similarity index 100% rename from public/css/awsm_theme_mischka._sealed.min.css rename to src/public/css/awsm_theme_mischka._sealed.min.css diff --git a/public/css/awsm_theme_mischka.css b/src/public/css/awsm_theme_mischka.css similarity index 100% rename from public/css/awsm_theme_mischka.css rename to src/public/css/awsm_theme_mischka.css diff --git a/public/css/awsm_theme_mischka.min.css b/src/public/css/awsm_theme_mischka.min.css similarity index 100% rename from public/css/awsm_theme_mischka.min.css rename to src/public/css/awsm_theme_mischka.min.css diff --git a/public/css/awsm_theme_pastel-pink._sealed.css b/src/public/css/awsm_theme_pastel-pink._sealed.css similarity index 100% rename from public/css/awsm_theme_pastel-pink._sealed.css rename to src/public/css/awsm_theme_pastel-pink._sealed.css diff --git a/public/css/awsm_theme_pastel-pink._sealed.min.css b/src/public/css/awsm_theme_pastel-pink._sealed.min.css similarity index 100% rename from public/css/awsm_theme_pastel-pink._sealed.min.css rename to src/public/css/awsm_theme_pastel-pink._sealed.min.css diff --git a/public/css/awsm_theme_pastel-pink.css b/src/public/css/awsm_theme_pastel-pink.css similarity index 100% rename from public/css/awsm_theme_pastel-pink.css rename to src/public/css/awsm_theme_pastel-pink.css diff --git a/public/css/awsm_theme_pastel-pink.min.css b/src/public/css/awsm_theme_pastel-pink.min.css similarity index 100% rename from public/css/awsm_theme_pastel-pink.min.css rename to src/public/css/awsm_theme_pastel-pink.min.css diff --git a/public/css/awsm_theme_pearl-lusta._sealed.css b/src/public/css/awsm_theme_pearl-lusta._sealed.css similarity index 100% rename from public/css/awsm_theme_pearl-lusta._sealed.css rename to src/public/css/awsm_theme_pearl-lusta._sealed.css diff --git a/public/css/awsm_theme_pearl-lusta._sealed.min.css b/src/public/css/awsm_theme_pearl-lusta._sealed.min.css similarity index 100% rename from public/css/awsm_theme_pearl-lusta._sealed.min.css rename to src/public/css/awsm_theme_pearl-lusta._sealed.min.css diff --git a/public/css/awsm_theme_pearl-lusta.css b/src/public/css/awsm_theme_pearl-lusta.css similarity index 100% rename from public/css/awsm_theme_pearl-lusta.css rename to src/public/css/awsm_theme_pearl-lusta.css diff --git a/public/css/awsm_theme_pearl-lusta.min.css b/src/public/css/awsm_theme_pearl-lusta.min.css similarity index 100% rename from public/css/awsm_theme_pearl-lusta.min.css rename to src/public/css/awsm_theme_pearl-lusta.min.css diff --git a/public/css/awsm_theme_tasman._sealed.css b/src/public/css/awsm_theme_tasman._sealed.css similarity index 100% rename from public/css/awsm_theme_tasman._sealed.css rename to src/public/css/awsm_theme_tasman._sealed.css diff --git a/public/css/awsm_theme_tasman._sealed.min.css b/src/public/css/awsm_theme_tasman._sealed.min.css similarity index 100% rename from public/css/awsm_theme_tasman._sealed.min.css rename to src/public/css/awsm_theme_tasman._sealed.min.css diff --git a/public/css/awsm_theme_tasman.css b/src/public/css/awsm_theme_tasman.css similarity index 100% rename from public/css/awsm_theme_tasman.css rename to src/public/css/awsm_theme_tasman.css diff --git a/public/css/awsm_theme_tasman.min.css b/src/public/css/awsm_theme_tasman.min.css similarity index 100% rename from public/css/awsm_theme_tasman.min.css rename to src/public/css/awsm_theme_tasman.min.css diff --git a/public/css/awsm_theme_white._sealed.css b/src/public/css/awsm_theme_white._sealed.css similarity index 100% rename from public/css/awsm_theme_white._sealed.css rename to src/public/css/awsm_theme_white._sealed.css diff --git a/public/css/awsm_theme_white._sealed.min.css b/src/public/css/awsm_theme_white._sealed.min.css similarity index 100% rename from public/css/awsm_theme_white._sealed.min.css rename to src/public/css/awsm_theme_white._sealed.min.css diff --git a/public/css/awsm_theme_white.css b/src/public/css/awsm_theme_white.css similarity index 100% rename from public/css/awsm_theme_white.css rename to src/public/css/awsm_theme_white.css diff --git a/public/css/awsm_theme_white.min.css b/src/public/css/awsm_theme_white.min.css similarity index 100% rename from public/css/awsm_theme_white.min.css rename to src/public/css/awsm_theme_white.min.css diff --git a/public/index.html b/src/public/index.html similarity index 100% rename from public/index.html rename to src/public/index.html diff --git a/public/login.html b/src/public/login.html similarity index 100% rename from public/login.html rename to src/public/login.html diff --git a/public/logout.html b/src/public/logout.html similarity index 100% rename from public/logout.html rename to src/public/logout.html diff --git a/server.js b/src/server.js similarity index 100% rename from server.js rename to src/server.js diff --git a/test.js b/src/test.js similarity index 100% rename from test.js rename to src/test.js diff --git a/utilities/data.js b/src/utilities/data.js similarity index 100% rename from utilities/data.js rename to src/utilities/data.js