describe build actions
This commit is contained in:
parent
d702e9d484
commit
e599032860
|
@ -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`
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue