ulovliglogning.dk/README.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

2018-01-21 00:05:45 +00:00
# Jekyll site for ulovliglogning.dk
2018-01-23 00:44:22 +00:00
## To work on the code, either
2018-01-21 00:05:45 +00:00
2018-01-23 00:44:22 +00:00
### Use docker
You need docker-compose. Simply run
`docker-compose up` to launch the site in a docker container with livereload support.
2018-04-17 17:31:14 +00:00
## Deploy to FTP with Docker
Make sure that you have created a file in `_scripts/` called `config.sh`, protip: just duplicate the `config-example.sh` file, and set the correct values, you should only need to change username and password. Then you can build the site ande deploy if by running `docker-compose -f docker-compose-deploy.yml up`
2018-01-23 00:44:22 +00:00
### Or install Jekyll locally
#### Install Jekyll and Bundler gems through RubyGems
2018-01-21 22:08:25 +00:00
`gem install jekyll bundler`
2018-01-23 00:44:22 +00:00
#### Install dependencies
2018-01-21 22:08:25 +00:00
`bundle install`
2018-01-23 00:44:22 +00:00
#### Build the site local
2018-01-21 22:08:25 +00:00
`bundle exec jekyll serve`
You can now see the site at [localhost:4000](http://localhost:4000)
2018-01-22 14:57:08 +00:00
## Deploy
It's **important** that you build the site with `JEKYLL_ENV=production bundle exec jekyll build` before deploying the contents of the `_site` directory. We're doing some debugging stuff when then project is build in the development env.
2018-01-21 22:08:25 +00:00
## Structure
2018-01-21 00:05:45 +00:00
The contents of the index page is defined in the frontmatter of the file `index.md`