Skip to content

Commit

Permalink
chore: Get release's version if needed (appsmithorg#37777)
Browse files Browse the repository at this point in the history
**/test sanity**



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced script to retrieve and export the Appsmith application
version when using a specific release URL.
- **Bug Fixes**
- Improved error handling and messaging for missing dependencies or
incorrect configurations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
sharat87 authored Nov 27, 2024
1 parent d7276e7 commit 465f5a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions start-https.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ if [[ ${backend-} == release ]]; then
backend=https://release.app.appsmith.com
fi

if [[ $backend == https://release.app.appsmith.com ]]; then
# If running client against release, we get the release's version and set it up, so we don't see version mismatches.
APPSMITH_VERSION_ID="$(
curl -sS "$backend/info" | grep -Eo '"version": ".+?"' | cut -d\" -f4
)"
export APPSMITH_VERSION_ID
fi

if [[ -z ${run_as-} ]]; then
if type nginx; then
run_as=nginx
Expand Down

0 comments on commit 465f5a3

Please sign in to comment.