forked from socketry/rackula
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Getting Started | ||
|
||
This guide will show you how to use the `rakula` gem to create a simple static website. | ||
|
||
## Installation | ||
|
||
Add the gem to your project: | ||
|
||
~~~ bash | ||
$ bundle add io-event | ||
~~~ | ||
|
||
and make sure `wget` is also installed, using your system package manager. | ||
|
||
## Usage | ||
|
||
### Rack Applications | ||
|
||
In the root directory, simply run `rackula`. It will generate a static site in `static`. For more details about how to change the default behavior, run `rackula --help`. | ||
|
||
### Rails Applications | ||
|
||
Add a `config.ru` file to your rails app and follow the above instructions. | ||
|
||
``` ruby | ||
# config.ru for rails app | ||
require_relative 'config/environment' | ||
run Rails.application | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
getting-started: | ||
order: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters