The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
feat: reinforce one liner experience (#4688)
Quentin G35fb77d9a88d
diff --git a/install.sh b/install.shindex f9d4e6daf2c..011482ce43f 100755--- a/install.sh+++ b/install.sh@@ -20,6 +20,18 @@ if ! command -v curl &>/dev/null; thenexit 1fi+# Check if docker compose version is >= 2+if [ "$(docker compose version --short | cut -d' ' -f3 | cut -d'.' -f1)" -lt 2 ]; then+ echo -e "\t❌ Docker Compose is outdated. Please update Docker Compose to version 2 or higher.\n\t\tSee https://docs.docker.com/compose/install/linux/"+ exit 1+fi+# Check if docker-compose is installed, if so issue a warning if version is < 2+if command -v docker-compose &>/dev/null; then+ if [ "$(docker-compose version --short | cut -d' ' -f3 | cut -d'.' -f1)" -lt 2 ]; then+ echo -e "\n\t⚠️ 'docker-compose' is installed but outdated. Make sure to use 'docker compose' or to upgrade 'docker-compose' to version 2.\n\t\tSee https://docs.docker.com/compose/install/standalone/\n"+ fi+fi+# Catch errorsset -efunction on_exit {@@ -78,10 +90,13 @@ elsefi# Generate random strings for secrets+echo "# === Randomly generated secrets ===" >>.envecho "ACCESS_TOKEN_SECRET=$(openssl rand -base64 32)" >>.envecho "LOGIN_TOKEN_SECRET=$(openssl rand -base64 32)" >>.envecho "REFRESH_TOKEN_SECRET=$(openssl rand -base64 32)" >>.envecho "FILE_TOKEN_SECRET=$(openssl rand -base64 32)" >>.env+echo "" >>.env+echo "POSTGRES_ADMIN_PASSWORD=$(openssl rand -base64 32)" >>.envecho -e "\t• .env configuration completed"@@ -113,11 +128,14 @@ elseecho "🐳 Starting Docker containers..."docker compose up -d# Check if port is listening- echo -n "Waiting for server to be healthy..."+ echo "Waiting for server to be healthy, it might take a few minutes while we initialize the database..."+ # Tail logs of the server until it's ready+ docker compose logs -f server &+ pid=$!while [ ! $(docker inspect --format='{{.State.Health.Status}}' twenty-server-1) = "healthy" ]; do- echo -n "."sleep 1done+ kill $pidecho ""echo "✅ Server is up and running"fidiff --git a/packages/twenty-docker/prod/.env.example b/packages/twenty-docker/prod/.env.exampleindex f9bf606369b..3999fc484ce 100644--- a/packages/twenty-docker/prod/.env.example+++ b/packages/twenty-docker/prod/.env.example@@ -1,6 +1,6 @@TAG=latest-POSTGRES_ADMIN_PASSWORD=replace_me_with_a_strong_password+# POSTGRES_ADMIN_PASSWORD=replace_me_with_a_strong_passwordPG_DATABASE_HOST=db:5432diff --git a/packages/twenty-docker/prod/docker-compose.yml b/packages/twenty-docker/prod/docker-compose.ymlindex edfcef2a542..70ef4ceef94 100644--- a/packages/twenty-docker/prod/docker-compose.yml+++ b/packages/twenty-docker/prod/docker-compose.yml@@ -1,3 +1,4 @@+version: "3.9"name: twentyservices:@@ -13,7 +14,7 @@ services:SERVER_URL: ${SERVER_URL}FRONT_BASE_URL: ${FRONT_BASE_URL:-$SERVER_URL}- ENABLE_DB_MIGRATIONS: true+ ENABLE_DB_MIGRATIONS: "true"SIGN_IN_PREFILLED: ${SIGN_IN_PREFILLED}STORAGE_TYPE: ${STORAGE_TYPE}