Skip to content

Type a word or two, like firewall or rollback.

Open Coresmith
Browse the docs
Get started Checked against Coresmith 0.8.46.

Your first deploy

Open as Markdown

In this tutorial you'll sign up for Coresmith Cloud, connect a server, deploy an app from GitHub and give it a domain with HTTPS. Plan on about 20 minutes. Most of that is waiting while the server is set up.

Before you start

You need:

  • An app in a GitHub repository, in one of the supported stacks. A Laravel, Rails, Django, Next.js or static site repository works well for a first try.
  • A server, or an account at Hetzner Cloud, DigitalOcean, Vultr or Linode where Coresmith can create one. A server you bring should be a fresh Ubuntu 24.04 or Debian 12 machine that you can reach over SSH as root, or as a user who can use sudo.
  • A domain where you can add DNS records. Without one, you can stop before the last step.

1. Sign up

Go to app.coresmith.io and create your account. Coresmith starts your team on a 14-day trial of Pro with one server. You don't need a card for it.

2. Add a server

Choose Add server, then one of these:

  • Create one at your cloud provider. Connect the provider with an API token, pick a region and a size, and choose Provision server. Connect a cloud provider lists the token each provider needs.
  • Bring your own. Choose Bring your own VM, enter the server's IP address, SSH port and SSH user, and run the command Coresmith shows on the server. That command gives Coresmith a key for this server alone. Coresmith never asks for the server's password.

Coresmith then sets the server up. Its page shows each step as it runs. After a few minutes the server reads Healthy, and it's ready for apps.

3. Connect GitHub

Open Settings, then Git, and choose Install on GitHub. Install the Coresmith app on your GitHub account or organization, and pick the repositories Coresmith may read. It can read code, set commit statuses and hear about pushes, and nothing else.

4. Add the app

On the server's page, choose Add an app. Under Source, pick your GitHub account, then pick the repository.

Coresmith reads the repository and fills in the stack: the language, the framework, the runtime version and, for apps that serve files, the web root. Under each field it says where the answer came from, such as composer.json or .nvmrc. If a field reads Pick one, choose the right option. If something in the repository would stop the deploy, the form says what to change.

Leave Domain empty for now, and choose Add the app. If the app gets an address without one, the line under Domain shows it, such as shop.coresmith.app on Coresmith Cloud.

5. Deploy

On the app's page, choose Deploy. The live log shows each step as it runs: getting the code, installing dependencies, building, running migrations if your framework has them, checking that the new release starts, and switching to it.

When the last step finishes, the app is live. If a step fails, the log says which one and why, and nothing changes for visitors. Fix the cause in your repository, push, and deploy again.

From now on, every push to the app's branch deploys on its own. Auto deploy on the app's page turns that off.

6. Add a domain

On the app's page, choose Add domain and enter a name, such as app.example.com. Coresmith shows the DNS records that point the name at your server, each with a copy button. Add them at your DNS provider, then add the domain in Coresmith.

Coresmith checks from outside your network that visitors can reach the domain, and says what to change if they can't. Coresmith gets the domain's HTTPS certificate as soon as the domain points at your server, and the certificate renews itself.

What you have now

Your app runs on your own server, on your own domain, with HTTPS. Some next steps: