Setup fly.io deployment
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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}"
|
||||
|
||||
# Uncomment to send crash dumps to stderr
|
||||
# This can be useful for debugging, but may log sensitive information
|
||||
# export ERL_CRASH_DUMP=/dev/stderr
|
||||
# export ERL_CRASH_DUMP_BYTES=4096
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
cd -P -- "$(dirname -- "$0")"
|
||||
exec ./music_library eval MusicLibrary.Release.migrate
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
call "%~dp0\music_library" eval MusicLibrary.Release.migrate
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
cd -P -- "$(dirname -- "$0")"
|
||||
PHX_SERVER=true exec ./music_library start
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
set PHX_SERVER=true
|
||||
call "%~dp0\music_library" start
|
||||
Reference in New Issue
Block a user