Mix task which generates infrastructure code for Elixir apps.
mix optimum.gen.infra
Required:
--phoenix
or --no-phoenix
--ecto
or --no-ecto
--github-url
--elixir-version
--node-version
--otp-version
Optional:
--fly-app-prefix
To install OptimumGenInfra, you will need to purchase a license. OptimumGenInfra is hosted on Code Code Ship.
Once you have purchased a license, follow the installation instructions.
First add codecodeship
as a Hex repository:
mix hex.repo add codecodeship https://hex.codecodeship.com/api/repo \
--fetch-public-key SHA256:5hyUvvnGT45CntYCrHAOO3tn94l1xz8fUlyQS7qDhxg \
--auth-key [YOUR AUTH KEY]
Then install optimum_gen_infra
:
mix archive.install hex optimum_gen_infra --repo codecodeship
Phoenix apps without database:
mix optimum.gen.infra \
--phoenix \
--no-ecto \
--github-url https://github.com/optimumBA/phx.tools \
--fly-app-prefix phx-tools \
--elixir-version 1.17.1 \
--node-version 20.14.0 \
--otp-version 27.0
Phoenix apps with a database:
mix optimum.gen.infra \
--phoenix \
--ecto \
--github-url https://github.com/StoryDeckIO/story_deck \
--fly-app-prefix storydeck \
--elixir-version 1.15.8 \
--node-version 20.14.0 \
--otp-version 26.2.5
Regular Elixir apps:
mix optimum.gen.infra \
--no-phoenix \
--no-ecto \
--github-url https://github.com/optimumBA/github_workflows_generator \
--elixir-version 1.17.3 \
--node-version 20.18.0 \
--otp-version 27.1.2
For any questions contact us at tools@optimum.ba.