# Deploying after mix ecto.dump

**URL:** <https://forum.devtalk.com/t/deploying-after-mix-ecto-dump/108130>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** elixir, deployments, database, blog-post\
**Created:** [8 May 2023 16:59 UTC](https://forum.devtalk.com/t/deploying-after-mix-ecto-dump/108130 "2023-05-08T16:59:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brainlid](https://forum.devtalk.com/user_avatar/forum.devtalk.com/brainlid/32/2825_2.png) [@brainlid](https://forum.devtalk.com/u/brainlid)\
**Post date:** [8 May 2023 16:59 UTC](https://forum.devtalk.com/t/deploying-after-mix-ecto-dump/108130/1 "2023-05-08T16:59:18Z")

</div>

At some point, large projects may choose to delete many old migrations and run `mix ecto.dump` to generate a structure.sql file. But then how do you deploy to a new clean server or start a staging server? This post connects the dots to get a safe, repeatable, automated deployment process for setting up a database from a structure.sql file.

> **[Deploying after mix ecto.dump](https://fly.io/phoenix-files/deploying-after-a-mix-ecto-dump/)**
>
> Getting our Elixir application deployed on Fly.io when we have a \`structure.sql\` file from running \`mix ecto.dump\` and we don't have all the migrations anymore.
