You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you rely on this library to backup your SQLite databases, it would much appreciated if you can give back to the
project in order to help ensure its continued development.
After adding {:litestream, "~> 0.4.0"} in your mix.exs file and running mix deps.get, open your application.ex
file and add the following to your supervision tree:
@impltruedefstart(_type,_args)dochildren=[# Start the Ecto repositoryLitescaleTest.Repo,{Litestream,litestream_config()},...]opts=[strategy: :one_for_one,name: MyApp.Supervisor]Supervisor.start_link(children,opts)enddefplitestream_configdoApplication.get_env(:my_app,Litestream)end
In your runtime.exs (or dev.exs if you are just developing locally):
With those in place, you should be all set to go! As soon as your application starts, your database will be
automatically synced with your remote destination.
Attribution
The logo for the project is an edited version of an SVG image from the unDraw project
The Litestream library that this library wraps Litestream