david/jekyll-dev
david
/
jekyll-dev
Archived
1
0
Fork 0

added variable to set project path in .env file

This commit is contained in:
david 2020-11-05 21:53:56 +01:00
parent 44dfc99aac
commit 1a38676fbe
3 changed files with 12 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.swp
*~
.env

View File

@ -1,3 +1,12 @@
# jekyll-dev
Simple container to help develop Jekyll sites.
Simple container to help develop [Jekyll](https://jekyllrb.com/) sites.
## Usage
You need a `.env` file which sets the project path:
```sh
cd /path/to/jekyll/project
echo "PROJECT_PATH=/path/to/jekyll/project" > .env
docker-compose up -d
```

View File

@ -6,7 +6,7 @@ services:
build: .
container_name: jekyll-dev
volumes:
- /home/david/Projects/just-the-docs/docs:/mnt
- ${PROJECT_PATH}:/mnt
ports:
- 127.0.0.1:4000:4000
restart: unless-stopped