Ployter

Service settings

What each field in the Settings tab does, how to adjust PHP and configuration files, turn on maintenance mode and delete a service.

The Settings tab brings together the name, the servers, the code source, the deploy steps and the container's resources. Almost everything you save here applies from the next deploy. Until you save, the footer shows Unsaved changes · they apply from the next deploy, and after you save, the screen shows the pending changes bar.

Settings tab of the web service, General and Runtime sections
Settings tab of the web service, General and Runtime sections

General

  • Name: the display name. The Internal address (the identifier, e.g. web) doesn't change, because other services may use it.
  • Servers: where the service runs. Select one server to run on a single one.

When you select 2 or more AWS or DigitalOcean servers, all from the same provider, the service gets replicas behind a load balancer. The first one selected is the primary. See Replicas and load balancer.

Rules for changing servers:

  • To change the server of a service running on a single server, stop the service first (Stop at the top).
  • Hetzner, Vultr and Linode servers and your own servers have no load balancer in the panel: one server per service, with no replicas or autoscaling.
  • A database in a container runs on a single server. For high availability, use a managed database.
  • With autoscaling on, it picks the servers. To pick them by hand, turn it off.
Note

When you change servers, the automatic domain (.ployter.app) starts pointing to the new server on its own. An older automatic domain on sslip.io keeps pointing to the old IP: remove it and generate another one in the Network tab.

Source and deploy

The Source section defines where the code comes from (GitHub or image). The Deploy section defines what runs on each deploy, in order: image build, the command before switching versions, and the version switch.

Runtime

Field What it does
Port The port your application listens on. Required for domains, health check, replicas and access. The container gets the PORT variable with this value.
Health check An HTTP path, e.g. /health. With it, the deploy only switches versions when the path responds successfully (up to 2 minutes). Without it, the deploy waits a few seconds with the container up and switches.
CPU limit In vCPU (e.g. 0.5). Blank means no limit.
Memory limit In MB (e.g. 512). Blank means the service can use up to 85% of the server's RAM (safety ceiling, agent 0.24.0 or later). If the application goes over the limit, only it is stopped and restarted; the other services on the server keep running.
Log folders Folders inside the container with log files, one per line. They show up in the Logs tab. Blank uses the framework default (e.g. /app/storage/logs in Laravel).

Automatic rollback is at the end of the deploy card, on by default. See Automatic rollback.

Tip

A simple health check keeps a broken version from going live. In Next.js or Express, create a route that responds 200 without depending on slow external services.

Click Save to store your changes, or Discard to go back to what was saved.

Other cards in the tab

Below the form, depending on the service type:

PHP and configuration files

The File Manager tab shows the files of the live container: php.ini, Nginx, Apache, Caddyfile. It shows up on application services, for people who can open the terminal.

The container is recreated on every deploy, so editing a file there works like this:

  1. Open the file and edit it. When you save, the edited version is stored in the service, with the customized tag.
  2. The change gets into the container on the next restart. Click Restart now in the notice that appears.
  3. From then on, the customized version is written again on every deploy, restart and replica.

To go back to the image's original file, open the file's menu, click Restore original and restart.

The shortcuts at the top take you to the configuration folders of the detected stack (PHP, Caddyfile, Nginx, Apache).

Configure PHP

On PHP services, the Configure PHP button opens a form with the most common directives:

Field Directive
Memory per request memory_limit
Max upload size upload_max_filesize
Max post size post_max_size
Max time (s) max_execution_time
Time to receive data (s) max_input_time
Fields per form max_input_vars
Time zone date.timezone
Show errors on the page display_errors
Session lifetime (s) session.gc_maxlifetime

Only what you change goes into a zz-ployter.ini file, loaded after php.ini. For other directives, edit that file in the file manager.

Configure PHP modal with upload_max_filesize changed
Configure PHP modal with upload_max_filesize changed

Warning

If Max post size is smaller than Max upload size, large files are still rejected. The form warns you.

Maintenance mode

Maintenance mode makes the service's domains show a notice page instead of the site. It turns on and off instantly, with no deploy, and the service keeps running behind it. It lives in the Network tab, in the Maintenance mode card.

  1. Open the service and go to the Network tab.
  2. In the Maintenance mode card, choose the page:
    • Default page: fill in Title and Message. The page is lightweight, follows the visitor's light or dark theme and reloads on its own every minute.
    • Custom HTML: the whole page, with CSS and images embedded (the site is offline). Up to 256 KB.
  3. Click Preview to check it and Save.
  4. Click Turn on maintenance and confirm with Turn on.

Maintenance mode card turned on, with the link to view the site
Maintenance mode card turned on, with the link to view the site

With maintenance on:

  • The service header shows the Maintenance tag.
  • Link to view the site gives you and your team an address to see the normal site for 12 hours, in the same browser. Generate another invalidates the current link.
  • To change the page, edit it and click Save page.
  • To go back, click Turn off and confirm.

Requirements: the service must have a domain and the server agent must be up to date.

From the CLI: ployter maintenance on --title "Voltamos já" --message "Atualização em andamento". See CLI.

Stop and delete the service

Stop (at the top of the screen) removes the container and takes the service offline, including on its domains. Volumes and configuration stay. To bring it back, run a deploy.

To delete it:

  1. Stop the service.
  2. If SFTP is on, turn it off in the Files tab.
  3. In Settings, in the Delete service card, click Delete.
  4. Type the service identifier to confirm and click Delete.

The service leaves the project along with its variables, domains and deploy history. The volumes stay on the server.

Permissions

  • Edit service configuration: save the Settings tab, PHP and customized files.
  • Open terminal: see the File Manager tab.
  • Manage domains: turn maintenance on and off and change the page.
  • Start, stop and restart services: Stop and Restart.
  • Delete services: the Delete service card.

See Teams, members and roles.