Ployter

First deploy

From sign-up to a live app with a domain and HTTPS, step by step.

This guide takes you from sign-up to a GitHub application running on a server in your cloud, with a domain and HTTPS. The example uses an AWS account, the project loja and the service web (Next.js, from the repository github.com/acme/loja). With DigitalOcean or your own server, the path is the same; only step 2 changes.

Prefer to be guided? Open Home → Get started. The screen lists the steps of this guide in order, checks off on its own what you've already done and opens each step right there: connect the cloud, create the server, connect GitHub, create the service and follow the first deploy. Until your first app is live, the Overview shows a shortcut to it.

Get started screen with the five steps
Get started screen with the five steps

1. Create your account

  1. Open the sign-up screen and fill in your name, email and password. Click Create account.
  2. Open the confirmation email and click the link.
  3. Sign in to the panel with your email and password.

Your team is created along with your account, and you are its owner. Later you can invite other people in Team → Members (see Teams, members and roles).

Note

If sign-up shows Sign-up closed, new accounts join by invitation only. Ask whoever manages the team for an invitation.

2. Connect your cloud

Open Integrations → Cloud providers and click Connect AWS, or Other clouds for DigitalOcean, Hetzner, Vultr and Linode. It takes about a minute:

  • AWS: you open a link that creates a stack in your account's CloudFormation and paste the RoleArn back into the panel. See Connect AWS.
  • DigitalOcean: you generate an API token and paste it into the panel. See Connect DigitalOcean.
  • Hetzner, Vultr and Linode: you paste a token (or API key) from the account. See Hetzner, Vultr and Linode.

Prefer a machine you already have? Skip this step and see Use your own server.

3. Create a server

  1. Open Servers and click New server.
  2. In Where to create, pick the connected account (for example, AWS Produção).
  3. Enter a Name, such as app-1.
  4. Pick the Region (for example, São Paulo, sa-east-1) and the Machine size (for example, t3.small).
  5. In Network, keep the Panel automatic network. It is created with the first server in each region.
  6. Turn on Static IP if the server will have domains: the IP doesn't change if the machine is stopped and started.
  7. Click Create server.

The machine is created and the agent installs itself. Within 1 to 3 minutes the server shows as Online. See Servers for details.

New server form on AWS
New server form on AWS

4. Connect GitHub (private repository)

A public repository works without a connection. For a private repository, or to turn on deploy on every push, connect GitHub:

  1. Open Integrations → GitHub and click Connect GitHub.
  2. In GitHub, pick the account or organization and the repositories, and click Install & Authorize.
  3. You come back to the panel with the connection ready (for example, GitHub acme).

Prefer a personal token? The step-by-step guide is in Connect GitHub. Is your code on GitLab or Bitbucket? See Connect GitLab or Connect Bitbucket.

5. Create the project

  1. Open Projects and click New project.
  2. In Name, type loja. The Identifier comes from the name if you leave it blank. It goes into the container and network names, and it can't change later.
  3. Click Create project.

6. Create the service and deploy

  1. In the project, click New service.
  2. In What will run, pick Git repository.
  3. Set the Name to web and pick the Server app-1.
  4. In Repository, pick acme/loja from the list (or use Paste a public repository URL). Pick the Branch.
  5. If you pasted the URL of a private repository, pick the connection under Credential. When you pick from the list, it comes along.
  6. In Port, enter the port your application listens on, for example 3000. It is required for domains and the health check.
  7. Keep Run the first deploy now checked and click Create service.

New service from GitHub
New service from GitHub

The deploy shows up in the service's Deploys tab, with the build log in real time. Without a Dockerfile in the repository, Railpack detects the language and builds the image by itself. See Build: Dockerfile, Railpack and image and Deploys, rollback and release command.

Need environment variables? Add them in the Variables tab before the deploy, or add them afterward and deploy again. See Variables and shared variables.

7. Add the domain

  1. In the service, open the Network tab.
  2. Type the domain, for example loja.com.br, and click Add. Keep the option to issue the HTTPS certificate on the server (Let's Encrypt) checked.
  3. Point the domain's DNS to the server:
    • With Cloudflare connected: the domain gets a Point here button. Click it, review and confirm with Point. See Connect Cloudflare.
    • With another DNS provider: create an A record with the domain name pointing to the server's public IP. The IP appears on the server screen.
  4. Run a deploy: a new domain takes effect from the next deploy.

Once DNS points to it, the server requests the certificate from Let's Encrypt and renews it by itself. The HTTPS active badge appears next to the domain.

Tip

Want to test before touching DNS? Click Generate automatic domain. The panel creates a .ployter.app address that already points to the server.

More details in Domains and HTTPS.

Next steps