Add deployment

This commit is contained in:
2023-11-26 22:23:19 +00:00
parent 3b0ee83188
commit c12ded9318
13 changed files with 228 additions and 3 deletions

8
rel/env.sh.eex Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
# configure node for distributed erlang with IPV6 support
export ERL_AFLAGS="-proto_dist inet6_tcp"
export ECTO_IPV6="true"
export DNS_CLUSTER_QUERY="${FLY_APP_NAME}.internal"
export RELEASE_DISTRIBUTION="name"
export RELEASE_NODE="${FLY_APP_NAME}-${FLY_IMAGE_REF##*-}@${FLY_PRIVATE_IP}"

3
rel/overlays/bin/migrate Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
cd -P -- "$(dirname -- "$0")"
exec ./wish eval Wish.Release.migrate

1
rel/overlays/bin/migrate.bat Executable file
View File

@@ -0,0 +1 @@
call "%~dp0\wish" eval Wish.Release.migrate

3
rel/overlays/bin/server Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
cd -P -- "$(dirname -- "$0")"
PHX_SERVER=true exec ./wish start

2
rel/overlays/bin/server.bat Executable file
View File

@@ -0,0 +1,2 @@
set PHX_SERVER=true
call "%~dp0\wish" start