Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Add a webpage icon
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocoutinhor committed Mar 8, 2020
1 parent c68e694 commit 275af43
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODE=PRODUCTION
LOG_LEVEL=INFO
PORT=9099
SPARK_HOST=hdcpx02.interno
MONGO=mongodb://localhost:27017
MONGO=mongodb://notebook:burning-book@localhost:27017
USER_BLACKLIST=sods3001,phdpdig
SPARK_QUEUE=root.digital.users
SPARK_LIBRARIES=/data2/digital_stage/app/production/scala/Load_digital/lib/commons-csv-1.2.jar,/data2/digital_stage/app/production/scala/Load_digital/lib/spark-csv_2.10-1.5.0.jar
10 changes: 10 additions & 0 deletions docker-compose-hml.yml → docker-compose-production.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
version: '3'
services:
web:
build: .
ports:
- 9085:9085
links:
- mongo
restart: always
environment:
MONGO: mongodb://notebook:burning-book@localhost:27017

mongo:
image: mongo
restart: always
Expand Down
10 changes: 0 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
version: '3'
services:
web:
build: .
ports:
- 9085:9085
links:
- mongo
restart: always

mongo:
image: mongo
restart: always
Expand All @@ -24,8 +16,6 @@ services:
- 9086:8081
links:
- mongo
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: notebook
ME_CONFIG_MONGODB_ADMINPASSWORD: burning-book
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"url": "[email protected]:thiagocoutinhor/burning-books.git"
},
"scripts": {
"docker": "docker-compose build && docker-compose up -d",
"prestart": "docker-compose -f docker-compose-hml.yml up -d",
"start": "node index.js",
"stop": "docker-compose -f docker-compose-hml.yml stop"
"production": "docker-compose -f docker-compose-production build && docker-compose -f docker-compose-production up -d",
"prestart": "docker-compose up -d",
"start": "nodemon",
"stop": "docker-compose stop"
},
"nodemonConfig": {
"ignore": [
Expand Down
Binary file added web/burning-books.xcf
Binary file not shown.
Binary file added web/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions web/router-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ scriptRouter.use('/popper.js', express.static('./node_modules/popper.js/dist/umd
cssRouter.use('/', express.static('./web/css'))
cssRouter.use('/bootstrap.css', express.static('./node_modules/bootstrap/dist/css/bootstrap.min.css'))

router.get('/favicon.ico', (req, res) => {
res.sendFile('./favicon.ico', { root: __dirname})
})
router.use('/script', scriptRouter)
router.use('/css', cssRouter)

Expand Down

0 comments on commit 275af43

Please sign in to comment.