forked from okfn/opendefinition
-
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
1 changed file
with
25 additions
and
0 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,25 @@ | ||
# Set up this project for local development | ||
|
||
This project requires Ruby to run so you'll need to install it. | ||
With Ubuntu, this will be: | ||
|
||
```bash | ||
sudo apt install ruby ruby-dev | ||
``` | ||
|
||
Then you'll need to install the dependencies. | ||
To avoid permission error and not use sudo for the next commands, you can install the gems in your home directory: | ||
|
||
```bash | ||
export OD_GEMS=$HOME/.odgems | ||
export GEM_HOME=$OD_GEMS/ruby/2.7.0 | ||
export PATH=$OD_GEMS/bin:$PATH | ||
bundle config set --local path "$OD_GEMS" | ||
bundle install | ||
``` | ||
|
||
And run locally overriding the `host` config value: | ||
|
||
```bash | ||
bundle exec jekyll serve --watch --incremental --trace --host=localhost | ||
``` |