Deploying Fastify on CloudStation

Fastify is a web framework for Node.js, designed for building fast and low-overhead web applications. It is highly performant and focuses on providing developers with a powerful plugin architecture, JSON schema validation, and comprehensive logging capabilities.

Key Features of Fastify:

  • Performance: Optimized for speed with low overhead.
  • Schema Validation: Ensures robust data handling using JSON schemas.
  • Extensibility: Easy integration of plugins to extend functionality.
  • Developer Experience: Built-in tools for logging and debugging.

To learn more, visit the official Fastify documentation.

This guide walks you through the steps to deploy a Fastify application using CloudStation.


Prerequisites

  • A CloudStation account. Sign up here if you don’t have one.
  • A Fastify project hosted on a Git repository (e.g., GitHub).

Steps to Deploy

1. Log in to CloudStation

  1. Open CloudStation in your browser.
  2. Enter your credentials and log in.

2. Create or Select a Project

  1. After logging in, you will land on the dashboard.
  2. You can:
    • Create a new project by clicking the Create Project button and providing the necessary details.
    • Select an existing project by clicking on the desired project from the list.

3. Add a New Resource

  1. Inside your project, click the Add New button.
  2. Four options will appear:
    • Git repository
    • Database
    • Template
    • Docker image
  3. Select Git repository.
  1. If your GitHub account is not linked, How to Connect Your GitHub Account in CloudStation.
  2. Follow the on-screen instructions to grant the necessary permissions.
  3. Once linked, your repositories will become accessible within CloudStation.

5. Select Your Fastify Project

  1. Browse through your GitHub repositories and select your Fastify project.
  2. Once selected, the Settings page will open.

6. Configure Deployment Settings (Optional)

  1. On the Settings page, you can:
    • Add environment variables required by your application.
    • Specify a custom port if your project needs to run on a particular port. The default port will be used if no changes are made. Read more about configure your git repo

7. Deploy Your Application

  1. Click the Deploy button.
  2. CloudStation will start deploying your Fastify application.
  3. You can monitor the deployment process in real-time.

Post-Deployment

  • Once deployed, you will receive a success notification.
  • Access your Fastify application using the URL provided by CloudStation.
  • Use the CloudStation dashboard to monitor logs, scale your application, or update settings as needed.

Troubleshooting

  • Environment Variable Issues: Ensure all required variables are set correctly.
  • Port Conflicts: Confirm that the selected port is not in use.
  • Deployment Errors: Check the logs available in the CloudStation dashboard to identify issues.

For further assistance, refer to the CloudStation Help Center or contact support.


Edit this file on GitHub