How to Configure GO project

This guide walks you through deploying a Go application using Pandastack’s container-based platform.

Pre-requisites:

  • Your Node.js app must listen on port 9999.

  • Alternatively, you can override this by setting the PORT environment variable during deployment


🛠️ Steps to Deploy

  1. Open the Pandastack Dashboard Navigate to dashboard.pandastack.io/projects and click “Add New Project”.

  2. Select your Git repository Choose the GitHub repository containing your Go application code.

  3. Enable container deployment Toggle the “Run as Container” option to run your Go app inside an isolated container.

  4. Configure deployment settings Fill out the deployment form:

    • Set the correct start command (e.g., ./your-app-binary)

    • Define any required environment variables

    • Set PORT=9999 or your custom port

    • Set GO_VERSION ENV if you want to select a different go version.

  5. Choose resources Allocate the required CPU and memory based on your app’s performance needs.

  6. Deploy your application Click “Deploy Container Site” to begin deployment. You’ll see live logs streaming as the container builds and starts.


✅ Post Deployment

Once deployed, your Go app will be available on a secure Pandastack URL. You can monitor logs, update environment variables, and redeploy easily from the dashboard.


Let me know if you want to add a section on compiling Go binaries before deployment or working with multi-stage Docker builds.

Last updated