Mix task which generates infrastructure code for Elixir apps.
mix optimum.gen.infra
Required:
--ecto
or --no-ecto
--elixir-version
--github-url
--node-version
--otp-version
--phoenix
or --no-phoenix
Optional:
--fly-app-prefix
To install OptimumGenInfra, you will need to purchase a license at 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 --no-ecto --elixir-version 1.17.1 --fly-app-prefix phx-tools --github-url https://github.com/optimumBA/phx.tools --node-version 20.14.0 --otp-version 27.0
Phoenix apps with a database:
mix optimum.gen.infra --ecto --elixir-version 1.15.8 --fly-app-prefix storydeck --github-url https://github.com/StoryDeckIO/story_deck --node-version 20.14.0 --otp-version 26.2.5
Regular Elixir apps:
mix optimum.gen.infra --no-ecto --no-phoenix --elixir-version 1.17.1 --github-url https://github.com/optimumBA/github_workflows_generator --node-version 20.14.0 --otp-version 27.0
For any questions contact us at tools@optimum.ba.