This guide is for developers who keep their code on GitHub and want every change to reach production without a manual upload. It explains what happens when you connect a repository, what Launchpad reads to decide how to build it, and how to organise branches so that automatic deploys help rather than surprise you.
By the end you will have a repository connected with the right permissions, settings you have reviewed before the first build, a branch strategy that keeps the live site stable, and a .gitignore that keeps secrets and build output out of your history.
If this is your very first deployment, start with Your first Launchpad deployment, which compares GitHub with zip uploads and templates.
Connecting GitHub and repository permissions
Launchpad connects to GitHub as an app installed on your account or organisation. When you click Connect GitHub, GitHub asks which repositories RemoteGeeks may read. You can grant all repositories or select specific ones, and private repositories work the same way as public ones.
Launchpad only reads your code. It does not push commits or change your repository. You can add or remove repositories later in your GitHub settings, and changing your GitHub password does not disconnect anything.
Prefer Only select repositories. It keeps the connection limited to what you deploy, and when you start a new project you add that one repository. If a deployment later reports that it could not download your repository, the usual cause is that the repository was removed from this list.
What detection reads
When you deploy, Launchpad reads a small set of files from the repository and fills in the framework, install, build and start commands, runtime version and port. On the review screen each value is marked as detected from a file or assumed as a default, so you know what to double-check.
| File | What Launchpad learns from it |
|---|---|
Dockerfile | Build with your Dockerfile; EXPOSE sets the port (3000 if absent) |
package.json | Node framework (Next.js, Nuxt, React, Vue, Express, plain Node), build and start scripts, engines.node |
| Lockfile | Package manager and install command |
composer.json | PHP or Laravel, and the PHP version |
requirements.txt or pyproject.toml | Python, Django or Flask, pip or Poetry |
Procfile | The start command for Python apps (web: ...) |
.nvmrc, .node-version, runtime.txt, .python-version | Runtime versions |
.env.example | Variable names, pre-filled on the review screen |
index.html | A static site with no build |
A Dockerfile wins
If the repository has a Dockerfile at its root, Launchpad uses it and skips framework detection. You have already decided how the app is built and run, so Launchpad respects that. Make sure the Dockerfile has an EXPOSE line for the port your app listens on, otherwise 3000 is assumed. Docker for web apps covers Dockerfiles that deploy cleanly.
Node projects
The lockfile decides the package manager: pnpm-lock.yaml means pnpm, yarn.lock means Yarn, bun.lock or bun.lockb means Bun, and package-lock.json means npm ci. With no lockfile, Launchpad falls back to npm install, which may install newer versions than you tested. The Node version comes from engines.node in package.json, then .nvmrc or .node-version, and defaults to Node 20.
React, Vite and Vue projects without a start script are built once and served as static files. Next.js, Nuxt, Express and plain Node apps run as servers.
PHP and Python projects
A composer.json means PHP, or Laravel if it requires laravel/framework. Dependencies are installed with composer install --no-dev --optimize-autoloader, and the PHP version comes from composer.json (default 8.3). Laravel needs an APP_KEY variable, which you can generate with php artisan key:generate --show. PHP projects deploy from GitHub only, not from zip uploads.
For Python, Django defaults to gunicorn config.wsgi and Flask to gunicorn app:app. Any other Python app needs a Procfile with a web: line. Port 8000 is assumed, and Python 3.12 unless runtime.txt or .python-version says otherwise.
Variables from .env.example
If the repository has a .env.example, its variable names appear on the review screen. Lines with a value become defaults; lines with no value are marked Required so you fill them in before deploying. Keep this file committed and up to date: it documents your configuration for the next person too.
# .env.example: names only, never real secrets
DATABASE_URL=
SESSION_SECRET=
STRIPE_SECRET_KEY=
LOG_LEVEL=infoStep by step: connect a repository and review settings
- In Launchpad, choose Deploy from GitHub (or + New → GitHub repository if you already have an app).
- Click Connect GitHub, choose Only select repositories, pick the repository and confirm.
- Back on the board, choose Step-by-step setup at the bottom of the repository list rather than Deploy.
- Pick the repository, then the Branch to deploy, usually
main. - Leave Root directory as
/unless the app lives in a subfolder. - Review the detected framework, commands and Port. Anything marked assumed deserves a second look.
- Set the Health check path if your app has a dedicated endpoint such as
/health. It must answer with a 2xx status once the app is ready. - Fill in every variable marked Required, and add any others your app needs.
- Click Deploy and follow the build log until the status is Live.
Automatic deploys and branch strategy
Once deployed, every push to the deployed branch starts a new deployment. This includes merges of pull requests and pushes made by an AI tool. The new version goes live only if it builds and passes its health check; otherwise the previous version keeps running.
That makes the deployed branch the most important rule in your workflow. A simple, reliable strategy:
- Deploy
main, and treat it as "what is live". - Do your work on feature branches. Pushing to them does not deploy anything.
- Merge into
mainthrough a pull request when the change is ready. - Run your tests on the pull request with GitHub Actions, so broken code never reaches
main.
CI/CD with GitHub Actions shows how to set up the test step. You can change the deployed branch later under Settings.
If you want a second environment to try changes first, deploy the same repository a second time as a separate app tracking a staging branch. On Starter that needs your one app slot, so this pattern usually means Pro.
Turning automatic deploys off
Some teams prefer to choose the moment a release goes out. Under Settings, switch off Deploy automatically on every push. Pushes then do nothing, and you publish by pressing Redeploy on the app when you are ready. This is also useful during a risky migration, or while you push many small commits you do not want deployed individually.
Monorepos
If one repository holds several projects, set the Root directory to the folder that holds the app, for example /apps/web. Detection then reads package.json, lockfiles and other files from that folder, and you can change it later under Settings → Build and run.
This works well when the folder is self-contained, with its own package.json and lockfile. It is less predictable when the app depends on shared packages elsewhere in the repository, or on a single lockfile at the top level, as most workspace setups do. For those, the dependable options are a Dockerfile that builds the app explicitly from the repository root, or moving the app into its own repository. Also expect every push to the deployed branch to start a deployment, even if it only touched another project.
Commit hygiene that keeps deploys predictable
- Commit your lockfile every time dependencies change. A lockfile out of step with
package.jsonis one of the most common build failures. - Never commit
node_modules,vendoror build output. Launchpad installs and builds from scratch each time. - Keep commits small and focused, with clear messages. Each deployment shows its commit, so a good message tells you at a glance what went live.
- Pin the runtime version with
engines,.nvmrcor.python-versionso it does not change under you.
A .gitignore that covers the usual cases for Node, PHP and Python projects:
# Dependencies
node_modules/
vendor/
.venv/
__pycache__/
# Build output
dist/
build/
.next/
.nuxt/
.output/
# Local environment and secrets
.env
.env.local
.env.*.local
# Keep the example file
!.env.example
# Editor and OS files
.DS_Store
.idea/
.vscode/
*.logCommon mistakes
- Pushing work-in-progress to main. Every push deploys. Work on branches and merge when ready.
- Missing lockfile. Without one, installs can pull newer versions. Commit
package-lock.json,yarn.lockorpnpm-lock.yaml. - Dockerfile without EXPOSE. Port 3000 is assumed. Add
EXPOSEwith your real port, and listen on0.0.0.0. - Forgetting required variables. The build may succeed while the app fails on start. Fill in every Required value.
- Removing the repository from the GitHub app. Deploys then fail to download the code. Re-add it in GitHub's settings.
Security notes
Grant access only to the repositories you deploy, and review the list when people leave the team. Never commit secrets, even to a private repository: anyone with read access, and any tool connected to the repository, can see the full history. If a secret does land in a commit, removing it in a later commit is not enough. Rotate it at the provider and update the value under Variables.
Protect main on GitHub with branch protection so changes arrive through reviewed pull requests. Since every push to main deploys, that review is your release gate.
Troubleshooting
The deploy says it could not download the repository
The GitHub connection no longer has access to it. Open the RemoteGeeks app in your GitHub settings and add the repository again, then press Redeploy.
Pushes no longer deploy
Check Settings: either Deploy automatically on every push is off, or you are pushing to a different branch from the one selected.
The wrong framework or command was detected
Detection reads the root directory. Check the Root directory, add the missing start script or Procfile, or set the commands yourself under Settings → Build and run.
Build fails because package.json and the lockfile do not match
Run npm install locally, commit the updated package-lock.json and push again.
Frequently asked questions
Can Launchpad deploy private repositories?
Yes. Select them when you connect GitHub. Launchpad reads the code it needs to build and nothing more.
Can I deploy two branches of the same repository?
Yes, as two separate apps, each tracking its own branch. Each app counts towards your plan's app limit.
Does Launchpad change anything in my repository?
No. It reads the files it needs to detect and build your app. It does not push commits, open pull requests or change repository settings.
Do I have to use the detected settings?
No. Use Step-by-step setup to change commands, port and variables before the first deploy, and Settings afterwards.
Next steps
With GitHub connected and a clear branch strategy, releasing becomes a merge. The next step is making sure each release is tested and easy to undo.
- CI/CD with GitHub Actions: test every pull request before it reaches main.
- Environment variables and secrets: keep configuration out of your code.
- Deployments, logs and rollbacks: read failures and roll back safely.
- Deploy your first app: the short version in the docs.
- Ready to connect a repository? Choose a Launchpad plan.




