start new:
tmux
start new with session name:
tmux new -s myname
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.
We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.
It should be generic enough to work on any elixir app using mix.
If you have a elixir_buildpack.config
, then enable that section in the build script to keep versions in sync!
2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.
# mix.exs file dependencies: | |
# defp deps do | |
# [ | |
# {:sweet_xml, "~> 0.4.0"}, | |
# {:json, "~> 0.3.0"} | |
# ] | |
# end | |
defmodule ElixirXml do | |
import SweetXml |
# How to run Ecto migrations from IEx console... Examples | |
# preliminaries assumed in the following code, change to fit your environment: | |
alias YourAppName.Repo | |
your_app_name_as_atom = :mpnetwork | |
downto_version = 20170724182558 | |
# Down: | |
Ecto.Migrator.run(Repo, "priv/repo/migrations/", :down, [to: downto_version]) |