summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/test.exs2
-rwxr-xr-xdeploy.sh4
-rw-r--r--front/package.json6
-rw-r--r--test/ssh/ssh_auth_test.exs6
4 files changed, 8 insertions, 10 deletions
diff --git a/config/test.exs b/config/test.exs
index 60b42be..ae8c230 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -19,5 +19,5 @@ config :hammer,
]
config :chessh,
- port: 34_355,
+ ssh_port: 34_355,
key_dir: Path.join(Path.dirname(__DIR__), "priv/test_keys")
diff --git a/deploy.sh b/deploy.sh
index 74586bb..10f96f5 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -42,7 +42,7 @@ docker run \
--env-file $env_file \
--network $project_name \
--name $project_name-server \
- --publish "${host}:${host_ssh_port}:${container_ssh_port}/tcp" \
+ --publish "${HOST}:${SSH_PORT}:${SSH_PORT}/tcp" \
--net-alias server \
chessh/server
@@ -52,6 +52,6 @@ docker run \
--env-file $env_file \
--network $project_name \
--name $project_name-frontend \
- --publish "${HOST}:${PORT}:80/tcp" \
+ --publish "${HOST}:${WEB_PORT}:80/tcp" \
--net-alias frontend \
chessh/frontend
diff --git a/front/package.json b/front/package.json
index f7d9d5d..5f42aea 100644
--- a/front/package.json
+++ b/front/package.json
@@ -13,7 +13,8 @@
"react-modal": "^3.16.1",
"react-router-dom": "^6.6.2",
"react-scripts": "5.0.1",
- "web-vitals": "^2.1.4"
+ "web-vitals": "^2.1.4",
+ "asciinema-player": "^3.0.1"
},
"scripts": {
"start": "react-scripts start",
@@ -38,8 +39,5 @@
"last 1 firefox version",
"last 1 safari version"
]
- },
- "devDependencies": {
- "asciinema-player": "^3.0.1"
}
}
diff --git a/test/ssh/ssh_auth_test.exs b/test/ssh/ssh_auth_test.exs
index 54b0069..70a57be 100644
--- a/test/ssh/ssh_auth_test.exs
+++ b/test/ssh/ssh_auth_test.exs
@@ -38,7 +38,7 @@ defmodule Chessh.SSH.AuthTest do
send(
parent,
{:attempted,
- :ssh.connect(@localhost, Application.fetch_env!(:chessh, :port),
+ :ssh.connect(@localhost, Application.fetch_env!(:chessh, :ssh_port),
user: String.to_charlist(@valid_user.username),
password: String.to_charlist(@valid_user.password),
auth_methods: auth_method,
@@ -90,7 +90,7 @@ defmodule Chessh.SSH.AuthTest do
Task.Supervisor.start_child(sup, fn ->
{:ok, conn} =
- :ssh.connect(@localhost, Application.fetch_env!(:chessh, :port),
+ :ssh.connect(@localhost, Application.fetch_env!(:chessh, :ssh_port),
user: String.to_charlist(@valid_user.username),
password: String.to_charlist(@valid_user.password),
auth_methods: 'password',
@@ -105,7 +105,7 @@ defmodule Chessh.SSH.AuthTest do
Task.Supervisor.start_child(sup, fn ->
{:ok, conn} =
- :ssh.connect(@localhost, Application.fetch_env!(:chessh, :port),
+ :ssh.connect(@localhost, Application.fetch_env!(:chessh, :ssh_port),
user: String.to_charlist(@valid_user.username),
auth_methods: 'publickey',
silently_accept_hosts: true,