Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit e2bab4b

Browse files
authored
Merge pull request #38 from SpringRoll/feature/159931672-run-dev-app-local
remove app from docker, modify .env
2 parents 4e6d877 + 7d58e17 commit e2bab4b

File tree

5 files changed

+9
-23
lines changed

5 files changed

+9
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ node_modules
33
.env
44
springroll.log
55
log.txt
6+
app/output.log

Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ SpringRoll Connect is a content management system built using [NodeJS](https://n
1111

1212
* Install the latest version of [Docker](https://www.docker.com/)
1313
* Copy `sample.env` to `.env`. You can modify these values, but for development you shouldn't have to
14-
* Run `docker-compose up --build` which should build both the mongo db server and start the node service
15-
* The website should then be available at `localhost:3000`
16-
* You can then seed the database with some information by running `node seed.js`
14+
* Run `docker-compose up --build` which should build both the mongo db server
15+
* Run `node server.js` which should start the application server
16+
* You should then seed the database with some information by running `node seed.js`
17+
* Running `seed.js` will also output the password for a user `admin`
18+
* The website should then be available at `localhost:3000`, and you can log in with your admin credentials from the `seed.js` output
19+
1720

1821
## License
1922

docker-compose.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,4 @@ services:
77
- "27017"
88
ports:
99
- "27017:27017"
10-
app:
11-
build: ./
12-
depends_on:
13-
- db
14-
env_file:
15-
- .env
16-
ports:
17-
- "3000:3000"
1810

sample.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
env=development
22
PORT=3000
3-
MONGO_DATABASE=mongodb://db:27017/connect
3+
MONGO_DATABASE=mongodb://localhost:27017/connect
44
SECRET_KEY=springrollconnect
5-
OUTPUT_LOG=/output.log
5+
OUTPUT_LOG=./output.log

0 commit comments

Comments
 (0)