describe build actions

This commit is contained in:
Jeppe Ernst 2018-04-18 22:18:02 +02:00
parent d702e9d484
commit e599032860
2 changed files with 6 additions and 1 deletions

View File

@ -26,5 +26,10 @@ If not using Docker, it's **important** that you build the site with `JEKYLL_ENV
### 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 it by running `docker-compose -f docker-compose-deploy.yml up`
This will execute a Docker container and do the following:
1. Build the site **but** fail if there are any Frontmatter
2. Upload the contents of the `_site/` directory to the FTP server
3. That's it…
## Structure
The contents of the index pages is defined in the frontmatter of the files `_pages/index-<language>.md`

View File

@ -8,7 +8,7 @@ normal="\033[0m"
source _scripts/config.sh
if [[ -z $jekyll_dir || -z $remote_username || -z $remote_password || -z $remote_host || -z $remote_dir ]]; then
echo -e "${error}FAILED: You have ommited one or more values from the config file, see the 'config-example.sh' file for the required values.${normal}"
echo -e "${error}FAILED: You have ommited one or more values from the config file, see the 'config-example.sh' file for the required values. Or maybe you need to create a 'config.sh' file in the '_scripts' directory.${normal}"
exit 1
fi