This file contains 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
FROM elixir:1.6-slim | |
RUN apt-get update \ | |
&& apt-get -y install apt-transport-https curl gnupg2 ssh git | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | |
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
# Install node and yarn | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash |
This file contains 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
defmodule MyApp.ReleaseTasks do | |
@start_apps [ | |
:postgrex, | |
:ecto | |
] | |
@myapps [ | |
:myapp | |
] |
This file contains 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
package models | |
import play.api.db.slick._ | |
import play.api.db.slick.Config.driver.simple._ | |
import scala.slick.lifted.Tag | |
case class Task(id: Option[Int], task: String) | |
class Tasks(tag: Tag) extends Table[Task](tag, "tasks"){ | |
def id = column[Int]("id", O.PrimaryKey, O.AutoInc) | |
def task = column[String]("task", O.NotNull) |