All posts

Deploying a clean build to Gigalixir (update Elixir version)

I needed to update the Elixir version for the DevDecks app, for production app builds I use Gigalixir and Mix releases. To get version updated I had to first update the elixir_version value in elixir_buildpack.config and add an always_rebuild value set to true.




Then when I pushed this change to Gigalixir I added an extra http header of GIGALIXIR-CLEAN: true. Which on the on the command line, which looks like:

git -c http.extraheader="GIGALIXIR-CLEAN: true" push gigalixir master

This was in place of the command I run otherwise which is git push gigalixir master if when doing a regular deploy.

After making these changes I the Elixir version for DevDecks was updated.


I built two products to help fund continued efforts for this website, it would mean a lot if you would check them out:
1. 2500+ Words for the Undermotivated Software Engineer - A short essay I wrote on the titled topic ($3).
2. Build 3 Chrome Extensions in Under 2 Hours - A course I built to teach chrome extension development ($9-20).