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
|
end
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def handle_cast({:progress, new_progress}, {pid, progress}) do
|
def handle_cast({:progress, new_progress}, {pid, _progress}) do
|
||||||
broadcast_progress(new_progress)
|
broadcast_progress(new_progress)
|
||||||
{:noreply, {pid, new_progress}}
|
{:noreply, {pid, new_progress}}
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,7 +8,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
module.exports = (env, options) => ({
|
module.exports = (env, options) => ({
|
||||||
optimization: {
|
optimization: {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
|
// new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
|
||||||
new OptimizeCSSAssetsPlugin({})
|
new OptimizeCSSAssetsPlugin({})
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,7 +10,8 @@ use Mix.Config
|
||||||
# which you should run after static files are built and
|
# which you should run after static files are built and
|
||||||
# before starting your production server.
|
# before starting your production server.
|
||||||
config :ui, UiWeb.Endpoint,
|
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"
|
cache_static_manifest: "priv/static/cache_manifest.json"
|
||||||
|
|
||||||
# Do not print debug messages in production
|
# Do not print debug messages in production
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
defmodule UiWeb.MorseProgressChannel do
|
defmodule UiWeb.MorseProgressChannel do
|
||||||
use UiWeb, :channel
|
use UiWeb, :channel
|
||||||
|
|
||||||
def join(channel_name, _params, socket) do
|
def join(_channel_name, _params, socket) do
|
||||||
{:ok, %{hi: :there}, socket}
|
{:ok, %{hi: :there}, socket}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue