Running Go, Rust, .NET and Java Applications 24/7 in the Panel
Move a service written in a compiled language into the panel, get the startup command right, bind the port, and restart automatically after a crash.
In brief
- On low-RAM plans, build your application locally and upload the binary.
- Configure your application to listen on 0.0.0.0 instead of 127.0.0.1.
- Read the port from the SERVER_PORT environment variable instead of hardcoding it.
What you need
- A project that builds and runs cleanly on your machine
- A service in the panel using the matching language runtime
- Knowing which port your application listens on
On this page
Apps & Code Server guides
When moving a compiled language into the panel there are two decisions: where to build, and what address your app listens on. Getting both right up front removes hours of later 'it runs but I cannot reach it' debugging.
Build on the server or locally?#
| Build on the server | Build locally and upload | |
|---|---|---|
| Memory needed | High -- Rust and .NET builds can want 1-2 GB RAM | None |
| Upload size | Small (source only) | Large (binary) |
| Speed | Build time on every start | Starts immediately |
| Best for | Small projects, quick experiments | Production, low-RAM plans |
Port binding: the most common mistake#
Every service gets an IP and a port in the panel, passed in as the SERVER_IP and SERVER_PORT environment variables. If your app listens on 127.0.0.1 it is unreachable from outside the container, and if it hardcodes a port it may not match the one assigned. The right move is to read the address from the environment.
Binding the port correctly
addr := os.Getenv("SERVER_IP") + ":" + os.Getenv("SERVER_PORT")
if addr == ":" {
addr = "0.0.0.0:8080" // yerel gelistirme
}
log.Fatal(http.ListenAndServe(addr, nil))Crashes, logs and restarts#
- The panel marks the service as stopped when the process exits; enable auto-restart in the service settings.
- Write logs to standard output rather than a file; the panel console only shows stdout.
- Exit code 137 means the process ran out of memory (OOM); raise the plan's RAM or reduce the app's memory use.
- In Java, cap -Xmx at roughly 75% of the plan's RAM; the rest is JVM overhead and the operating system.
Troubleshooting
App runs but is unreachable from outside
It listens on 127.0.0.1 or localhost.
Bind to 0.0.0.0 and to SERVER_PORT.
address already in use
A hardcoded port clashes with the assigned one, or a previous process is still alive.
Read the port from the environment, then fully stop and start the service from the panel.
Exit code 137
The memory limit was exceeded and the kernel killed the process.
Build locally or raise the plan's RAM; in Java, lower -Xmx.
Frequently Asked Questions
Why is my app unreachable from a browser or externally even though it appears running?
Your application is likely listening on 127.0.0.1 or bound to a hardcoded port. Configure your code to listen on address 0.0.0.0 and the SERVER_PORT environment variable.
Why does my Rust or .NET project fail to build on a low-RAM plan?
Rust and .NET compilers require substantial transient memory during compilation. For these languages, building the binary on your local machine and uploading only the executable to the server is recommended.
What does Exit Code 137 in the console mean?
This error indicates that the process exceeded its memory allocation and was killed by the kernel OOM mechanism. You can upgrade your plan's RAM or optimize your application's memory footprint.
How can I view my application logs in the panel console?
The panel console only captures standard output (stdout) and standard error (stderr). Direct your log output to the console rather than writing to a local log file.
Was this guide helpful?
Feedback goes straight to the team that maintains this guide.
Could not find a solution?
You can open a request with our support team from the panel.

