Fix/deploy script (#206)

* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

* updated template

* removed debug echo

* Updated Script

* Updated Text

* Removed option to connect to external mongo for fresh installs
Exit script of docker desktop is not installed

* Updated docker installation explanation

* added a question to skip custom domain if user is installing locally

* Inverted script question and

* Removed question to determine local installation

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
This commit is contained in:
Nikhil Nandagopal 2020-08-03 18:20:55 +05:30 committed by GitHub
parent 00e53af4ed
commit 0cb4d3733c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ if [ $fresh_install == "N" -o $fresh_install == "n" -o $fresh_install == "no" -o
auto_generate_encryption="false" auto_generate_encryption="false"
fi fi
elif [ $fresh_install == "Y" -o $fresh_install == "y" -o $fresh_install == "yes" -o $fresh_install == "Yes" ];then elif [ $fresh_install == "Y" -o $fresh_install == "y" -o $fresh_install == "yes" -o $fresh_install == "Yes" ];then
echo "Appsmith needs to configure a mongo db to run" echo "Appsmith needs to create a mongo db"
mongo_host="mongo" mongo_host="mongo"
mongo_database="appsmith" mongo_database="appsmith"
read -p 'Set the mongo root user: ' mongo_root_user read -p 'Set the mongo root user: ' mongo_root_user
@ -179,8 +179,8 @@ if [[ "$setup_encryption" = "true" ]];then
fi fi
echo "" echo ""
read -p 'Would you like to host appsmith on a custom domain / subdomain? [Y/n]: ' setup_domain read -p 'Do you have a custom domain that you would like to link? (Only for cloud installations) [N/y]: ' setup_domain
setup_domain=${setup_domain:-Y} setup_domain=${setup_domain:-N}
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
echo "" echo ""
echo "+++++++++++ IMPORTANT PLEASE READ ++++++++++++++++++++++" echo "+++++++++++ IMPORTANT PLEASE READ ++++++++++++++++++++++"
@ -190,10 +190,8 @@ if [ $setup_domain == "Y" -o $setup_domain == "y" -o $setup_domain == "yes" -o $
echo "+++++++++++++++++++++++++++++++++++++++++++++++" echo "+++++++++++++++++++++++++++++++++++++++++++++++"
echo "" echo ""
echo "Would you like to provision an SSL certificate for your custom domain / subdomain?" 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 read -p '(Your DNS records must be updated for us to proceed) [Y/n]: ' setup_ssl
setup_ssl=${setup_ssl:-Y} setup_ssl=${setup_ssl:-Y}
else
setup_ssl="n"
fi fi
if [ $setup_ssl == "Y" -o $setup_ssl == "y" -o $setup_ssl == "yes" -o $setup_ssl == "Yes" ];then if [ $setup_ssl == "Y" -o $setup_ssl == "y" -o $setup_ssl == "yes" -o $setup_ssl == "Yes" ];then
@ -279,5 +277,6 @@ echo "Your installation is complete. Please run the following command to ensure
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 ""
echo "Your application is running on http://localhost"
echo "Need help troubleshooting?" echo "Need help troubleshooting?"
echo "Join our discord server https://discord.com/invite/rBTTVJp" echo "Join our discord server https://discord.com/invite/rBTTVJp"