mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-04 03:35:25 -05:00
Docs: Build for production
This commit is contained in:
@@ -21,6 +21,13 @@ jekyll build --watch
|
||||
# watched for changes, and regenerated automatically.
|
||||
```
|
||||
|
||||
Default URL is set to `http://localhost:4000` in development environment. {% include docs_version_badge.html version="3.3.0" %}
|
||||
|
||||
If you want to build for your production environment:
|
||||
|
||||
- Set your production URL in `_config.yml` e.g. `url: https://example.com`.
|
||||
- Run `JEKYLL_ENV=production bundle exec jekyll build`.
|
||||
|
||||
<div class="note info">
|
||||
<h5>Changes to <code>_config.yml</code> are not included during automatic regeneration.</h5>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user