Powered by AppSignal & Oban Pro

Deployment

exercises/deployment.livemd

Deployment

Mix.install([
  {:jason, "~> 1.4"},
  {:kino, "~> 0.9", override: true},
  {:youtube, github: "brooklinjazz/youtube"},
  {:hidden_cell, github: "brooklinjazz/hidden_cell"}
])

Navigation

Home Report An Issue Book Search: DeploymentGroup Project: Presentation

Deploy

Use Fly.io to deploy your Blog or capstone project.

At the time of writing, Fly.io allows you to have two free apps. If you choose to deploy your Blog project, then you may have to pay a fee to deploy your capstone project.

Setup Continuous Integration

Use GitHub Actions to setup a CI system that will automatically run tests whenever you make a PR to the Blog project.

Setup Continuous Deployment System

Use GitHub Actions to setup a CD system with Fly.io that will automatically deploy your project whenever you merge a PR to the main branch.

Bonus: Production Seeds

Create a module that will seed your production database with data. Open the IEx shell in your production application and use the module to seed your production database.

Bonus: CI Check

Add the following steps to your CI process.

Code formatting:

Run mix format --check-formatted

Check warnings as errors:

mix compile --warnings-as-errors

Bonus: Credo CI

Add Credo to your project and configure it with your continuous integration system.

Bonus: Dialyzer CI

Add Dialyzer to your project and configure it with your continuous integration system.

Commit Your Progress

DockYard Academy now recommends you use the latest Release rather than forking or cloning our repository.

Run git status to ensure there are no undesirable changes. Then run the following in your command line from the curriculum folder to commit your progress.

$ git add .
$ git commit -m "finish Deployment exercise"
$ git push

We’re proud to offer our open-source curriculum free of charge for anyone to learn from at their own pace.

We also offer a paid course where you can learn from an instructor alongside a cohort of your peers. We will accept applications for the June-August 2023 cohort soon.

Navigation

Home Report An Issue Book Search: DeploymentGroup Project: Presentation