Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Blog: Deployment

exercises/blog_deployment.livemd

Blog: 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 Phoenix DeploymentBlog: Custom Feature

Deploy

Use Fly.io to deploy your Blog project.

At the time of writing, Fly.io allows you to have two free apps. Keep this in mind if you choose to deploy other projects that it may affect your ability to deploy your blog or capstone project.

CI/CD

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.

Optional Bonus Features

The following are completely optional features you might add to learn more about deployment and CI/CD.

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.

Formatting And Warnings 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

Credo CI Check

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

Dialyzer CI Check

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 Blog: 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 Phoenix DeploymentBlog: Custom Feature