Skip to content

Instantly share code, notes, and snippets.

@brucepom
brucepom / gist:d9641819e6ce2a5a0bc39f862b5a9802
Created September 27, 2016 00:19
Nginx config for Phoenix. Use staticcally gzipped assets, no ssh
upstream chat_web {
server 127.0.0.1:8080;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server{
upstream chat_web {
server 127.0.0.1:8080;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server{
upstream cdt_dashboard {
server 127.0.0.1:8080;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server{
# /apps/cdt_dashboard/lib/cdt_dashboard.ex
defmodule CdtDashboard do
@moduledoc """
Entry point for application
"""
use Application
# See http://elixir-lang.org/docs/stable/elixir/Application.html
# for more information on OTP Applications
@lint false
# /apps/cdt_dashboard/mix.exs
defmodule CdtDashboard.Mixfile do
use Mix.Project
def project do
[app: :cdt_dashboard,
version: "0.0.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",