the url of MagiCarbon is configed as love.magicarbon.com in _config.yml file.
but it push me into a embarrassed situation while run Jekyll serve in local ENV.
i have to change the url in _config.yml file temporarily and also make sure not include it while commit.
here is the solution
first copy the _config.yml to _config-local.yml, and set the url in the _config-local.yml file;
then run:
bundle exec jekyll serve -H0.0.0.0 --config _config-local.yml
that’s all.
note: better for you to add ‘_config-local.yml’ to .gitignore list
alternatively, you can create a bash-shell script file named serve.sh
, put the above content in.
Leave A Comment