Fix/deploy script (#94)

* Added information to setup domain

* Fixed incorrect var reference

* Updated documentation message

* Updated env template

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
This commit is contained in:
Nikhil Nandagopal 2020-07-15 12:49:52 +05:30 committed by GitHub
parent 204e65924f
commit de151e1b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 16 deletions

View File

@ -67,10 +67,7 @@ axiosInstance.interceptors.response.use(
}
}
const errorData = error.response.data.responseMeta;
if (
errorData.status === 404 &&
errorData.error.code === 4028
) {
if (errorData.status === 404 && errorData.error.code === 4028) {
history.push(PAGE_NOT_FOUND_URL);
return Promise.reject({
code: 404,

View File

@ -59,7 +59,7 @@ export function getResponseErrorMessage(response: ApiResponse) {
: undefined;
}
type ErrorPayloadType = { code?: number; message?: string, show?:boolean };
type ErrorPayloadType = { code?: number; message?: string; show?: boolean };
let ActionErrorDisplayMap: {
[key: string]: (error: ErrorPayloadType) => string;
} = {};

View File

@ -130,7 +130,6 @@ if [[ "$setup_encryption" = "true" ]];then
fi
fi
echo ""
read -p 'Would you like to host appsmith on a custom domain / subdomain? [Y/n]: ' setup_domain
setup_domain=${setup_domain:-Y}
if [ $setup_domain == "Y" -o $setup_domain == "y" -o $setup_domain == "yes" -o $setup_domain == "Yes" ];then

View File

@ -8,6 +8,10 @@ if [ -f docker-compose.yml ]
fi
cat > docker.env << EOF
# Read our documentation on how to configure these features
# https://docs.appsmith.com/v/v1.1/enabling-3p-services
# ***** Email **********
APPSMITH_MAIL_ENABLED=false
# APPSMITH_MAIL_HOST=
# APPSMITH_MAIL_PASSWORD=
@ -15,16 +19,24 @@ APPSMITH_MAIL_ENABLED=false
# APPSMITH_MAIL_SMTP_AUTH=
# APPSMITH_MAIL_SMTP_TLS_ENABLED=
# APPSMITH_MAIL_USERNAME=
# APPSMITH_MARKETPLACE_URL=
APPSMITH_MONGODB_URI=mongodb://$mongo_root_user:$mongo_root_password@$mongo_host/appsmith?retryWrites=true
# APPSMITH_OAUTH2_GITHUB_CLIENT_ID=
# APPSMITH_OAUTH2_GITHUB_CLIENT_SECRET=
# ******************************
# ******** Google OAuth ********
# APPSMITH_OAUTH2_GOOGLE_CLIENT_ID=
# APPSMITH_OAUTH2_GOOGLE_CLIENT_SECRET=
# APPSMITH_RAPID_API_KEY_VALUE=
APPSMITH_REDIS_URL=redis://redis:6379
# APPSMITH_ROLLBAR_ACCESS_TOKEN=
# APPSMITH_ROLLBAR_ENV=
# APPSMITH_SEGMENT_KEY=
# ******************************
# ********* Github OAUth **********
# APPSMITH_OAUTH2_GITHUB_CLIENT_ID=
# APPSMITH_OAUTH2_GITHUB_CLIENT_SECRET=
# *********************************
# ******** Google Maps ***********
# APPSMITH_GOOGLE_MAPS_API_KEY=
# ********************************
# ******** Database *************
APPSMITH_REDIS_URL=redis://redis:6379
APPSMITH_MONGODB_URI=mongodb://$mongo_root_user:$mongo_root_password@$mongo_host/appsmith?retryWrites=true
# *******************************
EOF