Revert to 56e05fced

This commit is contained in:
Pim Kunis 2019-07-31 13:16:53 +02:00
parent 4569869d6a
commit 510cdcbc9c
7 changed files with 16 additions and 6 deletions

View file

@ -8,7 +8,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = (env, options) => ({
optimization: {
minimizer: [
// new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
new OptimizeCSSAssetsPlugin({})
]
},

View file

@ -9,6 +9,7 @@ use Mix.Config
# Configures the endpoint
config :ui, UiWeb.Endpoint,
url: [host: "localhost"],
secret_key_base: "FkfuB09FEncz4aAi6hS6w5bsNast+D1P12MckXr5dlRdhtFJrKqgEhvhpTU3qzgh",
render_errors: [view: UiWeb.ErrorView, accepts: ~w(html json)],
pubsub: [name: Ui.PubSub, adapter: Phoenix.PubSub.PG2]

View file

@ -10,7 +10,7 @@ use Mix.Config
# which you should run after static files are built and
# before starting your production server.
config :ui, UiWeb.Endpoint,
url: [host: "www.geokunis2.nl", port: 80],
url: [host: "example.com", port: 80],
cache_static_manifest: "priv/static/cache_manifest.json"
# Do not print debug messages in production

View file

@ -12,6 +12,7 @@ secret_key_base =
"""
config :ui, UiWeb.Endpoint,
http: [:inet6, port: String.to_integer(System.get_env("PORT") || "4000")],
secret_key_base: secret_key_base
# ## Using releases (Elixir v1.9+)

View file

@ -1,7 +1,7 @@
defmodule UiWeb.MorseProgressChannel do
use UiWeb, :channel
def join(_channel_name, _params, socket) do
def join(channel_name, _params, socket) do
{:ok, %{hi: :there}, socket}
end
end