Fix/deploy script (#83)

* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
This commit is contained in:
Nikhil Nandagopal 2020-07-13 16:57:46 +05:30 committed by GitHub
parent a193125093
commit d133f9f839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,11 +94,21 @@ elif [[ $mongo_option -eq 1 ]];then
read -sp 'Set the mongo password: ' mongo_root_password read -sp 'Set the mongo password: ' mongo_root_password
fi fi
echo "" echo ""
read -p 'Would you like to setup a custom domain to access appsmith? [Y/n]: ' setup_domain read -p 'Would you like to host appsmith on a custom domain / subdomain? [Y/n]: ' setup_domain
setup_domain=${setup_domain:-Y} setup_domain=${setup_domain:-Y}
if [ $setup_domain == "Y" -o $setup_domain == "y" -o $setup_domain == "yes" -o $setup_domain == "Yes" ];then if [ $setup_domain == "Y" -o $setup_domain == "y" -o $setup_domain == "yes" -o $setup_domain == "Yes" ];then
read -p 'Enter your domain name (example.com): ' custom_domain echo "+++++++++++++++++++++++++++++++++"
echo "Please update your DNS records with your domain registrar"
echo "You can read more about this in our Documentation"
echo "https://docs.appsmith.com/v/v1.1/quick-start#custom-domains"
echo "+++++++++++++++++++++++++++++++++"
echo "Would you like to provision an SSL certificate for your custom domain / subdomain?"
read -p '(Your DNS records must be updated for us to provision SSL) [Y/n]: ' setup_ssl
setup_ssl=${setup_ssl:-Y}
fi
if [ $setup_ssl == "Y" -o $setup_ssl == "y" -o $setup_ssl == "yes" -o $setup_ssl == "Yes" ];then
read -p 'Enter your domain / subdomain name (example.com / app.example.com): ' custom_domain
fi fi
NGINX_SSL_CMNT="" NGINX_SSL_CMNT=""
@ -190,3 +200,6 @@ echo ""
echo "Your installation is complete. Please run the following command to ensure that all the containers are running without errors" echo "Your installation is complete. Please run the following command to ensure that all the containers are running without errors"
echo " cd $install_dir && sudo docker-compose ps -a" echo " cd $install_dir && sudo docker-compose ps -a"
echo -e "Peace out \U1F596" echo -e "Peace out \U1F596"
echo ""
echo "Need help troubleshooting?"
echo "Join our discord server https://discord.com/invite/rBTTVJp"