diff --git a/.gitignore b/.gitignore index 2015eb221fcc..8d9bcfba4528 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ stacks /deploy/docker/fs/opt/appsmith/info.json +# Server artifacts +/deploy/docker/fs/opt/appsmith/server + # to ignore the node_modeules folder node_modules # to ignore the package-lock.json file @@ -36,3 +39,5 @@ app/client/.fleet/* # Observability related local storage utils/observability/tempo-data/* +# Ignore the mongo data backup directory for Mongo to PG migrations +mongo-data** \ No newline at end of file diff --git a/deploy/docker/fs/opt/appsmith/run-java.sh b/deploy/docker/fs/opt/appsmith/run-java.sh index b9255a9293ec..675c8e26511e 100755 --- a/deploy/docker/fs/opt/appsmith/run-java.sh +++ b/deploy/docker/fs/opt/appsmith/run-java.sh @@ -5,6 +5,14 @@ set -o pipefail set -o nounset set -o noglob +mode=mongo +if [[ "$APPSMITH_DB_URL" = postgresql://* ]]; then + mode=pg +fi + +tlog "Running with $mode." +cd "/opt/appsmith/server/$mode" + declare -a extra_args proxy_configured=0 diff --git a/deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/backend.conf b/deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/backend.conf index be1d8cd57e9c..a9f4ed00ecdd 100644 --- a/deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/backend.conf +++ b/deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/backend.conf @@ -1,5 +1,4 @@ [program:backend] -directory=/opt/appsmith/backend command=/opt/appsmith/run-with-env.sh /opt/appsmith/run-java.sh priority=20 autostart=true