Fix socket connectivity on production.
Fix unused variable warnings.
This commit is contained in:
parent
5bb6584286
commit
7ff72c56c5
4 changed files with 5 additions and 4 deletions
|
@ -37,7 +37,7 @@ defmodule MorseServer do
|
|||
end
|
||||
|
||||
@impl true
|
||||
def handle_cast({:progress, new_progress}, {pid, progress}) do
|
||||
def handle_cast({:progress, new_progress}, {pid, _progress}) do
|
||||
broadcast_progress(new_progress)
|
||||
{:noreply, {pid, new_progress}}
|
||||
end
|
||||
|
|
|
@ -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({})
|
||||
]
|
||||
},
|
||||
|
|
|
@ -10,7 +10,8 @@ use Mix.Config
|
|||
# which you should run after static files are built and
|
||||
# before starting your production server.
|
||||
config :ui, UiWeb.Endpoint,
|
||||
url: [host: "example.com", port: 80],
|
||||
url: [host: "www.geokunis2.nl", port: 80],
|
||||
check_origin: false,
|
||||
cache_static_manifest: "priv/static/cache_manifest.json"
|
||||
|
||||
# Do not print debug messages in production
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue