|
@@ -74,7 +74,13 @@ function generate_launch_shell() {
|
|
m=$(echo "$md" | awk -v i="$i" '{print $i }')
|
|
m=$(echo "$md" | awk -v i="$i" '{print $i }')
|
|
mp="500$i"
|
|
mp="500$i"
|
|
echo "/usr/bin/gunicorn $m .app:app -b 0.0.0.0:$mp " >>"start.sh"
|
|
echo "/usr/bin/gunicorn $m .app:app -b 0.0.0.0:$mp " >>"start.sh"
|
|
- m_domain=$domain_name:$mp
|
|
|
|
|
|
+
|
|
|
|
+ m_domain="$m.$domain_name"
|
|
|
|
+
|
|
|
|
+ if [[ "$domain_name" == "http://localhost" ]]; then
|
|
|
|
+ m_domain=$domain_name:$mp
|
|
|
|
+ fi
|
|
|
|
+
|
|
tp="{{"$m"_domain}}"
|
|
tp="{{"$m"_domain}}"
|
|
sed -i "s@$tp@$m_domain@" config.ini
|
|
sed -i "s@$tp@$m_domain@" config.ini
|
|
done
|
|
done
|
|
@@ -168,15 +174,16 @@ function select_mode() {
|
|
select_mode
|
|
select_mode
|
|
|
|
|
|
# Set Domain
|
|
# Set Domain
|
|
-echo -e "Set your ${cyan} Domain name ${none} or ${cyan}s (skip)${none}?"
|
|
|
|
|
|
+echo -e "Set your ${cyan} Domain name (no http(s) prefix )${none} or ${cyan}s (skip) to use localhost${none}?"
|
|
read -r domain_input
|
|
read -r domain_input
|
|
echo
|
|
echo
|
|
-if [[ "$domain_input" == 's' ]] || [[ -z "$null" ]]; then
|
|
|
|
|
|
+echo "domain_input :$domain_input"
|
|
|
|
+if [[ "$domain_input" == 's' || -z "$domain_input" ]]; then
|
|
echo -e "$yellow skip${none}"
|
|
echo -e "$yellow skip${none}"
|
|
else
|
|
else
|
|
domain_name=$domain_input
|
|
domain_name=$domain_input
|
|
fi
|
|
fi
|
|
-
|
|
|
|
|
|
+echo "domain: $domain_name"
|
|
echo
|
|
echo
|
|
echo
|
|
echo
|
|
generate_launch_shell "$modules" &
|
|
generate_launch_shell "$modules" &
|