There are many like it, but this one is mine.
$ echo "DEVELOPMENT=true" >> .env
$ echo "HUGO_BASEURL=localhost" >> .env
With Docker Compose:
docker-compose builddocker-compose up
With Convox:
convox start
With Convox:
- Install a Rack
convox switch personal/<your Rack name>- From the project root, run
mkdir .convox echo $(convox switch) > .convox/rackconvox apps create- Create a CNAME with your DNS provider to your Rack load balancer URL
- Run
convox env set HUGO_BASEURL=blog.example.com(replaceblog.example.comwith the URL of your blog) convox deploy
This repo looks a lot like @jfrazelle's blog, because that's where I got it.