Coder Social home page Coder Social logo

adropofilm / fanya_backend Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.23 MB

Phoenix-powered backend API for keeping track of todo list tasks.

CSS 1.85% JavaScript 90.26% Elixir 7.46% HTML 0.42% Procfile 0.01%
api elixir phoenix phoenix-framework

fanya_backend's People

Contributors

adropofilm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fanya_backend's Issues

Configure deployment script to run migrations on deploy

Gigalixir, the hosting platform for the web app, does not automatically run db migrations, so I'll need to update the yaml to add this step.

However, Gigalixir does provide a command line tool that we can use to run database migrations as part of the deployment process. To run database migrations on Gigalixir, we will need to include a task in the mix.exs file that runs the necessary migrations, and then execute that task using the Gigalixir CLI.

For example, we could define a task in your mix.exs file like this:

defmodule TodoBackend.Mixfile do
  # ...

  defp deps do
    # ...
  end

  defp aliases do
    # ...
    alias TodoBackend.Mixfile,
      run_migrations: ["ecto.migrate"]
  end
end

and in the gigalixir CLI we can do something like this: gigalixir run "mix run_migrations"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.