Docs · Quickstart
Quickstart: deploy your first app on Makofy
To deploy on Makofy, start the 7-day free trial, then either connect a GitHub repository (every push to the branch redeploys) or run makofy deploy in your project folder. Makofy builds your Dockerfile, or detects Node.js, Python, Go, Ruby or a static site, and your web app goes live at https://<app>--<workspace>.makofy.sh from $1.50 a month.
Last updated · By the Makofy team (Muncar Ventures LLC)
Before you start
- An account with a verified email address. Sign up here.
- The 7-day free trial, started with a card. You can create apps without it, but deploying needs an active trial or subscription. Nothing is charged until the trial ends.
- An app that listens on the port in the
PORTenvironment variable. Makofy sets it for web and private services; it is 8080 unless you choose another port.
Option A: deploy from GitHub
- In the dashboard, create a new app and connect your GitHub account (Makofy asks for access to your repositories through GitHub OAuth).
- Pick the repository and the branch to deploy. The branch defaults to
main. - If the app lives in a subfolder of a monorepo, set the root directory to that folder.
- Choose the service type: web, private, background worker or cron (with a 5-field schedule).
- Choose the instance type: Nap ($1.50, web only, sleeps when idle), Starter ($3.50, always on), Basic ($6), Pro ($12) or Dedicated ($35). See instance types.
- Add environment variables, or link an env group (see environment variables).
- Deploy. Makofy builds the image, starts it, checks that it is healthy and gives a web app its URL.
From then on, every push to the chosen branch builds and deploys that exact commit. Makofy installs a webhook on the repository for this; you don’t need a CI pipeline.
Option B: deploy from your terminal
- Install the CLI (Linux and macOS, amd64 and arm64).
- Log in with your Makofy email and password.
- Run
makofy deployin the project folder. The first run creates an app named after the folder and saves the link in.makofy.json, so later runs update the same app.
curl -fsSL https://makofy.com/install.sh | sh
makofy login
cd my-app
makofy deploymakofy deploy uploads the current folder (respecting .gitignore in a git repository) and prints the URL when the app is live. Flags set the port, the service type, a cron schedule or a start command: see the CLI reference.
What Makofy detects
Makofy looks at the root of your project (or the root directory you set) in this order and uses the first match.
| If the project has | Makofy builds | And starts it with |
|---|---|---|
Dockerfile | Your Dockerfile, as-is | Its CMD/ENTRYPOINT |
package.json | Node.js 20; npm, yarn, pnpm or bun chosen from the lockfile | Next.js: next start. Vite, Create React App and similar with a build script: the build output served by nginx. Otherwise: your start script |
go.mod | Go 1.23 (go.sum required), a static binary | The compiled binary |
requirements.txt, Pipfile or pyproject.toml | Python 3.12 | FastAPI: uvicorn. Flask: gunicorn (add it to your requirements). Django: gunicorn config.wsgi, or runserver if gunicorn isn’t a dependency. Otherwise python app.py |
Gemfile | Ruby 3.3 (Gemfile.lock required) | Rails: rails server. Rack: rackup. Otherwise ruby app.rb |
index.html | A static site served by nginx | nginx |
Health checks and automatic rollback
After each deploy Makofy waits up to 2 minutes for the new version to become healthy. By default the check is a TCP connection to your app’s port; you can set an HTTP health check path instead. If the new version fails (it crashes, keeps restarting or never answers), Makofy marks the deploy unhealthy and automatically redeploys the last healthy version, so a bad commit doesn’t take your app down. A failed build never touches the running version. You can also roll back to any earlier deploy in one click from the dashboard.
Next steps
- Point your own domain at the app: custom domains.
- Add a database: Postgres & Redis.
- Pick the right size: instance types & sleeping.
- Follow a guide for your stack: Node.js, Next.js, FastAPI, Django, Flask, Go.
FAQ
Frequently asked questions
How long does a first deploy take on Makofy?
It depends mostly on your build, which may run for up to 15 minutes; after that Makofy waits up to 2 minutes for the app to pass its health check.
Which branch does Makofy deploy from GitHub?
The branch you choose when you connect the repository, main by default. Only pushes to that branch trigger a deploy.
Can I deploy without GitHub?
Yes. Install the CLI and run makofy deploy in your project folder; it uploads the folder and builds it the same way.
What happens if my new deploy is broken?
If it fails its health check, Makofy automatically puts the previous healthy version back. A failed build leaves the running version untouched.
Do I need a Dockerfile to deploy on Makofy?
No for Node.js, Python, Go, Ruby and static sites, which are auto-detected. Other stacks need a Dockerfile.
Related
Deploy your app in a few minutes.
Connect a GitHub repo or run makofy deploy. Flat price per app, 7-day free trial, card required.