Created
June 2, 2020 13:27
-
-
Save wyozi/bdba9a19d8373029cca35f04e6ee954c to your computer and use it in GitHub Desktop.
Phoenix Framework must-haves
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run REPL | |
iex -S mix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start server AND open REPL | |
iex -S mix phx.server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script for decimating everything in the database. You can run it as: | |
# | |
# mix run priv/repo/truncate_all.exs | |
unless Mix.env() == :dev, do: System.halt(1) | |
Inuative.Repo.query("TRUNCATE my_table_name CASCADE", []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment