Moved backend to a separate directory
This commit is contained in:
@@ -33,13 +33,13 @@ ENV NODE_ENV production
|
|||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
USER root
|
USER root
|
||||||
RUN rm -r ./src ./public/js-source ./bio-proxy-configuration-for-docker && \
|
RUN rm -r ./backend/src ./backend/test ./public/js-source ./bio-proxy-configuration-for-docker && \
|
||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
# healthcheck
|
# healthcheck
|
||||||
HEALTHCHECK --interval=10s --timeout=2s --start-period=15s \
|
HEALTHCHECK --interval=10s --timeout=2s --start-period=15s \
|
||||||
CMD node ./out/healthcheck.js
|
CMD node ./backend/out/healthcheck.js
|
||||||
|
|
||||||
# set command
|
# set command
|
||||||
CMD npm run production
|
CMD npm run production
|
||||||
|
|||||||
@@ -48,12 +48,12 @@ router.use(AutoReloader.getRouter({
|
|||||||
// static config
|
// static config
|
||||||
router.use('/js/polyfill.js', Polyfill.getRouter('./public/js/bundle.js'));
|
router.use('/js/polyfill.js', Polyfill.getRouter('./public/js/bundle.js'));
|
||||||
router.use(sassMiddleware({
|
router.use(sassMiddleware({
|
||||||
src: path.join(__dirname, '../public'),
|
src: path.join(__dirname, '../../public'),
|
||||||
dest: path.join(__dirname, '../public'),
|
dest: path.join(__dirname, '../../public'),
|
||||||
indentedSyntax: true, // true = .sass and false = .scss
|
indentedSyntax: true, // true = .sass and false = .scss
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
}));
|
}));
|
||||||
router.use(express.static(path.join(__dirname, '../public')));
|
router.use(express.static(path.join(__dirname, '../../public')));
|
||||||
|
|
||||||
router.use(indexRouter);
|
router.use(indexRouter);
|
||||||
app.use(DefaultConfig.BASE_PATH, router);
|
app.use(DefaultConfig.BASE_PATH, router);
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"./src/**/*.ts"
|
"./src/**/*.ts"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"./node_modules",
|
"../node_modules",
|
||||||
"./public"
|
"./public"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -6,11 +6,11 @@
|
|||||||
"lint": "eslint . --ext .ts",
|
"lint": "eslint . --ext .ts",
|
||||||
"lint-fix": "eslint . --ext .ts --fix",
|
"lint-fix": "eslint . --ext .ts --fix",
|
||||||
"debug-client": "tsc-watch --project ./public/js-source",
|
"debug-client": "tsc-watch --project ./public/js-source",
|
||||||
"debug-server": "tsc-watch --project . --onSuccess \"node --enable-source-maps --use-openssl-ca --unhandled-rejections=strict ./out/index\"",
|
"debug-server": "tsc-watch --project ./backend --onSuccess \"node --enable-source-maps --use-openssl-ca --unhandled-rejections=strict ./backend/out/index\"",
|
||||||
"debug": "concurrently npm:debug-*",
|
"debug": "concurrently npm:debug-*",
|
||||||
"test": "nyc mocha -r ts-node/register ./public/js-source/test/**/*.ts ./test/**/*.ts",
|
"test": "nyc mocha -r ts-node/register ./public/js-source/test/**/*.ts ./backend/test/**/*.ts",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"production": "node --use-openssl-ca --unhandled-rejections=strict ./out/index",
|
"production": "node --use-openssl-ca --unhandled-rejections=strict ./backend/out/index",
|
||||||
"install-debug": "npm install && npm run build",
|
"install-debug": "npm install && npm run build",
|
||||||
"install-prod": "npm install --only=dev && npm install --only=prod && npm run build && npm test && npm run del-node-module && npm install --only=prod",
|
"install-prod": "npm install --only=dev && npm install --only=prod && npm run build && npm test && npm run del-node-module && npm install --only=prod",
|
||||||
"del-node-module:default": "rm -r node_modules",
|
"del-node-module:default": "rm -r node_modules",
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
body {
|
|
||||||
padding: 50px;
|
|
||||||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; }
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #00B7FF; }
|
|
||||||
|
|
||||||
/*# sourceMappingURL=style.css.map */
|
|
||||||
Reference in New Issue
Block a user