-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document webserver deployment for #929 #932
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,19 @@ reviewed: 18/10/20 | |
|
||
\lineskip | ||
|
||
Deploying the website is trivial on GitHub, Gitlab and services like Netlify. | ||
Deploying the website is trivial on an existing webserver, via GitHub or Gitlab, or on services like Netlify. | ||
|
||
## Deploying on an existing webserver | ||
|
||
The contents of the `__site__` folder can simply be deployed to a path on an existing server as follows. | ||
Supposing you wish your site to appear at `http://my.example.com/path/to/my/franklin/site/`. You would take the following steps: | ||
|
||
* Prepare the `__site__` directory by running `optimize( prepath='/path/to/my/franklin/site/', minify = false )`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. idem |
||
Franklin.jl does not use relative links, so this step is needed to ensure that the links between site elements are correct. (The `minify = false` argument is optional but is currently recommended.) | ||
|
||
* Copy the contents of the `__site__` directory to the target location using your chosen method. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe here after There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in eba6986 |
||
|
||
Your site should now be live, with the index page appearing at `http://my.example.com/path/to/my/franklin/site/index.html`. | ||
|
||
## Deploying on GitHub | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__site
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in eba6986