genbox 1.0.89 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/create.js +2 -31
- package/package.json +1 -1
package/dist/commands/create.js
CHANGED
|
@@ -958,37 +958,8 @@ function generateSetupScript(resolved, config, envFilesToMove = []) {
|
|
|
958
958
|
lines.push('rm -rf /home/dev/.env-staging 2>/dev/null || true');
|
|
959
959
|
lines.push('');
|
|
960
960
|
}
|
|
961
|
-
//
|
|
962
|
-
|
|
963
|
-
lines.push(`cd ${resolved.repos[0].path} || exit 1`);
|
|
964
|
-
lines.push('');
|
|
965
|
-
}
|
|
966
|
-
// Install dependencies - detect package manager from lockfiles
|
|
967
|
-
lines.push('# Install dependencies');
|
|
968
|
-
lines.push('if [ -f "pnpm-lock.yaml" ]; then');
|
|
969
|
-
lines.push(' echo "Installing dependencies with pnpm..."');
|
|
970
|
-
lines.push(' pnpm install --frozen-lockfile');
|
|
971
|
-
lines.push('elif [ -f "yarn.lock" ]; then');
|
|
972
|
-
lines.push(' echo "Installing dependencies with yarn..."');
|
|
973
|
-
lines.push(' yarn install --frozen-lockfile');
|
|
974
|
-
lines.push('elif [ -f "bun.lockb" ]; then');
|
|
975
|
-
lines.push(' echo "Installing dependencies with bun..."');
|
|
976
|
-
lines.push(' bun install --frozen-lockfile');
|
|
977
|
-
lines.push('elif [ -f "package-lock.json" ]; then');
|
|
978
|
-
lines.push(' echo "Installing dependencies with npm..."');
|
|
979
|
-
lines.push(' npm ci');
|
|
980
|
-
lines.push('fi');
|
|
981
|
-
// Start Docker if API is included locally
|
|
982
|
-
const hasLocalApi = resolved.apps.some(a => a.name === 'api' || a.type === 'backend');
|
|
983
|
-
if (hasLocalApi) {
|
|
984
|
-
lines.push('');
|
|
985
|
-
lines.push('echo "Starting Docker services..."');
|
|
986
|
-
lines.push('if [ -f "docker-compose.yml" ] || [ -f "compose.yml" ]; then');
|
|
987
|
-
lines.push(' docker compose up -d');
|
|
988
|
-
lines.push('fi');
|
|
989
|
-
}
|
|
990
|
-
lines.push('');
|
|
991
|
-
lines.push('echo "Setup complete!"');
|
|
961
|
+
// NOTE: Dependencies installation, Docker setup, and app startup are handled
|
|
962
|
+
// by the API's cloud-init setup script. This script only handles env file processing.
|
|
992
963
|
return lines.join('\n');
|
|
993
964
|
}
|
|
994
965
|
/**
|