Deploy Fiber App on Seenode | Fiber Hosting & Deployment Guide
This guide explains how to deploy your existing Fiber application to seenode. Fiber is an Express-inspired web framework built on top of Fasthttp, the fastest HTTP engine for Go.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have:
- A seenode account at cloud.seenode.com
- Git configured on your machine
- Existing Fiber project ready to deploy
Configure for seenode Deployment
Section titled “Configure for seenode Deployment”Port Configuration
Section titled “Port Configuration”Your main.go file should create a Fiber server that listens on the PORT environment variable, defaulting to 80 if not set. This allows seenode to correctly route traffic to your application.
package main
import ( "fmt" "os"
"github.com/gofiber/fiber/v2")
func main() { app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error { return c.SendString("Hello, Welcome to seenode 👋") })
port := os.Getenv("PORT") if port == "" { port = "80" } app.Listen(fmt.Sprintf(":%s", port))}Dependencies
Section titled “Dependencies”Make sure your go.mod lists gofiber/fiber as a dependency:
module your-fiber-project
go 1.21
require github.com/gofiber/fiber/v2 v2.52.0Run
go mod tidygo.sum file.
Deploy on seenode
Section titled “Deploy on seenode”-
Push to Git
Commit your project and push it to GitHub or GitLab.
-
Create a Web Service
From the seenode Dashboard, create a new Web Service and connect your Fiber project’s Git repository.
-
Configure Build & Start
seenode will attempt to detect these automatically. Configure:
- Build Command: go build -o app main.go
- Start Command: ./app
- Build Command:
-
Choose Pricing Tier
Select your preferred instance size and create your service.
-
Deploy
Click Create Web Service and watch logs until your web service is live.
-
Success
Once complete, your Fiber application will be accessible via your service’s URL.
Starting from Scratch?
Section titled “Starting from Scratch?”If you don’t have a Fiber project yet:
Option 1: Use our Template (Recommended)
Fiber Template
Deploy a minimal Fiber application designed for zero-configuration deployment.Option 2: Create from Fiber Docs + seenode Setup
Follow the official Fiber documentation to create a new project, then return here for seenode-specific deployment steps.
seenode-Specific Setup Steps:
- Create Go module:
go mod init your-project - Install Fiber:
go get github.com/gofiber/fiber/v2 - Configure to listen on port 80
Next Steps
Section titled “Next Steps”Now that your Fiber application is deployed, here are some things you might want to do next:
Set up a Custom Domain (Coming Soon)
Configure a custom domain to point to your new web service.Connect to a Database
Instantly scaffold and connect PostgreSQL and MySQL databases