=> The current folder will be generated into ./_site
$ jekyll build –destination
=> The current folder will be generated into
$ jekyll build –source –destination
=> The folder will be generated into
$ jekyll build –watch
=> The current folder will be generated into ./_site,
watched for changes, and regenerated automatically.
注意:目标目录将会在站点构建是被清空
The contents of are automatically cleaned when the site is built. Files or folders that are not created by your site will be removed. Do not use an important location for ; instead, use it as a staging area and copy files from there to your web server.
Jekyll还带有一个内建的开发服务器,用来在本地浏览器预览生成的站点。
$ jekyll serve
=> A development server will run at http://localhost:4000/
$ jekyll serve –detach
=> Same as jekyll serve but will detach from the current terminal.
If you need to kill the server, you can kill -9 1234 where “1234” is the PID.
If you cannot find the PID, then do, ps aux | grep jekyll and kill the instance. Read more.
$ jekyll serve –watch
=> Same as jekyll serve, but watch for changes and regenerate automatically.