We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c7926 commit e8e7b0dCopy full SHA for e8e7b0d
1 file changed
.package/setup.sh
@@ -66,6 +66,13 @@ if ! get_env_var "DOMAIN"; then
66
done
67
fi
68
69
+# Add domain to /etc/hosts
70
+domain="$(. ./.env 2>/dev/null; printf '%s' "$DOMAIN")"
71
+host="127.0.0.1 ${domain}"
72
+if ! grep -qFx "$host" /etc/hosts 2>/dev/null; then
73
+ printf '%s\n' "$host" | sudo tee -a /etc/hosts >/dev/null
74
+fi
75
+
76
# SECRET_KEY
77
if ! get_env_var "SECRET_KEY"; then
78
secret_key=$(openssl rand -hex 32)
0 commit comments