Skip to content
Snippets Groups Projects
Commit b17b5e34 authored by fauno's avatar fauno
Browse files

feat: support env var for changing distributed press url

parent ae68e85b
No related merge requests found
......@@ -62,6 +62,13 @@ Build and publish site:
JEKYLL_ENV=production DISTRIBUTED_PRESS_API_KEY=the_api_key bundle exec jekyll build
```
Other env vars:
```bash
DISTRIBUTED_PRESS_PROJECT_DOMAIN=your.domain.at.distributed.press
DISTRIBUTED_PRESS_API_URL=https://api.distributed.press
```
## Contributing
Bug reports and pull requests are welcome on 0xacab.org at
......
......@@ -16,7 +16,7 @@ Jekyll::Hooks.register :site, :post_write, priority: :low do |site|
Jekyll.logger.info 'Distributed Press:', 'Publishing website'
distributed_press = DistributedPress.new project_domain: hostname
distributed_press = DistributedPress.new(url: ENV['DISTRIBUTED_PRESS_API_URL'], project_domain: hostname)
distributed_press.configure && distributed_press.publish(site.dest)
Jekyll.logger.info 'Distributed Press:', 'Published!'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment