mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-12 16:04:39 +08:00
Normalize example dir in app server fly instructions (#2676)
This commit is contained in:
parent
e414e5557c
commit
a587128a60
1 changed files with 4 additions and 1 deletions
|
@ -195,7 +195,10 @@ defmodule LivebookWeb.Hub.Teams.DeploymentGroupAgentComponent do
|
||||||
defp fly_instructions(image, env, hub_name, deployment_group_name) do
|
defp fly_instructions(image, env, hub_name, deployment_group_name) do
|
||||||
envs = Enum.map_join(env, " \\\n", fn {key, value} -> ~s/ #{key}="#{value}"/ end)
|
envs = Enum.map_join(env, " \\\n", fn {key, value} -> ~s/ #{key}="#{value}"/ end)
|
||||||
|
|
||||||
example_dir = "#{hub_name}-#{deployment_group_name}-lb-server"
|
example_dir =
|
||||||
|
"lb-server-#{hub_name}-#{deployment_group_name}"
|
||||||
|
|> String.replace(~r/[^\w-]/, "")
|
||||||
|
|> String.downcase()
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# Create a directory for your Fly app config
|
# Create a directory for your Fly app config
|
||||||
|
|
Loading…
Add table
Reference in a new issue