# Loading a structure.sql file on Prod without mix

**URL:** <https://forum.devtalk.com/t/loading-a-structure-sql-file-on-prod-without-mix/109523>\
**Category:** Blogs/Articles/Talks/Podcasts\
**Tags:** elixir, postgresql, database, migrations, deploy, blog-post\
**Created:** [18 May 2023 16:43 UTC](https://forum.devtalk.com/t/loading-a-structure-sql-file-on-prod-without-mix/109523 "2023-05-18T16:43:30Z")\
**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:** [18 May 2023 16:43 UTC](https://forum.devtalk.com/t/loading-a-structure-sql-file-on-prod-without-mix/109523/1 "2023-05-18T16:43:30Z")

</div>

Have you run `mix ecto.dump` and now rely on a `structure.sql` file to bootstrap a new DB? When you deploy a release to a production-like environment, you don’t have MIX and you can’t run `mix ecto.load` . See how we can still bootstrap a clean staging environment or deploy to a fresh prod DB! (Spoiler: We’ll steal code from ecto\_sql!)

> **[Loading a structure.sql file on Prod without mix](https://fly.io/phoenix-files/loading-structure-sql-on-prod-without-mix/)**
>
> 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.
