Skip to content

Elixir application which demonstrates a bare-minimum release-ready app using Distillery.

Notifications You must be signed in to change notification settings

bumbus/distillery-test

 
 

Repository files navigation

Release Manager Test

Follow these steps to do a test upgrade of an app, along with a dependency (:timex)

  • Clone it
  • Prepare deployment directory e.g. mkdir -p /tmp/test/releases/0.2.0
  • Fetch deps and build: cd distillery-test && mix do deps.get, compile
  • Build release: mix release --env=prod
  • Deploy release: cp _build/dev/rel/test/releases/0.1.0/test.tar.gz /tmp/test/
  • Start release: cd /tmp/test && tar -xf test.tar.gz && ./bin/test start
  • Verify with:
    • ./bin/test ping
    • ./bin/test remote_console
    • At prompt GenServer.call(Test.Server, :ping), should return :v1
  • Make some changes, bump the version to 0.2.0
  • mix release --env=prod --upgrade
  • Deploy upgrade: cp _build/dev/rel/test/releases/0.2.0/test.tar.gz /tmp/test/releases/0.2.0/
  • Apply upgrade: cd /tmp/test && ./bin/test upgrade "0.2.0"
  • Verify your changes are present in the upgraded version

About

Elixir application which demonstrates a bare-minimum release-ready app using Distillery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 60.3%
  • JavaScript 19.2%
  • Dockerfile 10.0%
  • Shell 4.9%
  • Makefile 3.6%
  • HTML 1.8%
  • CSS 0.2%