Commit ec7f695a authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

rename app to frontend

parent cd6194b7
......@@ -19,7 +19,7 @@ RUN chown -R cloudron:cloudron /app/code/easyrsa
ADD package.json /app/code/
RUN npm install --production
ADD src /app/code/src
ADD app /app/code/app
ADD frontend /app/code/frontend
# Somehow postinstall is not run automatically when building docker image
RUN npm run postinstall
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -6,9 +6,9 @@
"scripts": {
"lint": "standard",
"test": "npm run lint && mocha --bail test/test.js",
"copy_js": "mkdir -p app/js/lib && cp node_modules/element-ui/lib/index.js app/js/lib/element-ui.js && cp node_modules/superagent/superagent.js node_modules/vue/dist/vue.min.js app/js/lib",
"copy_css": "mkdir -p app/css/lib && cp node_modules/element-ui/lib/theme-chalk/index.css app/css/lib/theme-chalk.css && cp node_modules/element-ui/lib/theme-chalk/display.css app/css/lib/",
"copy_fonts": "cp -rf node_modules/element-ui/lib/theme-chalk/fonts/ app/css/lib/",
"copy_js": "mkdir -p frontend/js/lib && cp node_modules/element-ui/lib/index.js frontend/js/lib/element-ui.js && cp node_modules/superagent/superagent.js node_modules/vue/dist/vue.min.js frontend/js/lib",
"copy_css": "mkdir -p frontend/css/lib && cp node_modules/element-ui/lib/theme-chalk/index.css frontend/css/lib/theme-chalk.css && cp node_modules/element-ui/lib/theme-chalk/display.css frontend/css/lib/",
"copy_fonts": "cp -rf node_modules/element-ui/lib/theme-chalk/fonts/ frontend/css/lib/",
"postinstall": "npm run copy_js && npm run copy_css && npm run copy_fonts"
},
"keywords": [
......
......@@ -76,7 +76,7 @@ router.put('/api/key/*', isAuthenticated, openvpn.createKey)
router.get('/api/key/*', isAuthenticated, openvpn.getKey)
router.delete('/api/key/*', isAuthenticated, openvpn.revokeKey)
app.use(router)
app.use('/', express.static(path.resolve(__dirname, 'app')))
app.use('/', express.static(path.resolve(__dirname, 'frontend')))
app.use(lastMile())
const server = app.listen(3000, '0.0.0.0', () => {
......
Markdown is supported
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