Languages and frameworks
A service built from Git without a Dockerfile is built with Railpack, the open-source builder (MIT) that Railway made to follow Nixpacks. Railpack looks at the service's folder, works out its language, framework and versions, and builds an image.
OpenPanel's agent uses Railpack 0.44.0. It downloads Railpack from Railway's GitHub release the first time a server builds, and installs it only when its SHA-256 matches the value built into the agent. Railpack's BuildKit frontend runs at the same version, pinned by its digest.
What Railpack detects
Railpack reads the root of the service's folder. These are the languages it builds and the files that mark each, from Railpack's own documentation:
| Language | Detected by |
|---|---|
| Node.js, Bun and front-end apps | package.json |
| Python | requirements.txt, pyproject.toml or Pipfile, or a main.py, app.py, start.py, bot.py, hello.py or server.py |
| Go | go.mod, go.work or main.go |
| PHP, Laravel | index.php or composer.json |
| Java | gradlew, or a pom.xml (or another pom.*) |
| Ruby, Rails | Gemfile |
| Rust | Cargo.toml |
| Elixir, Phoenix | mix.exs |
| Deno | deno.json or deno.jsonc |
| .NET | a *.csproj file |
| Gleam | gleam.toml |
| C and C++ | CMakeLists.txt or meson.build |
| Static sites | Staticfile, index.html, or a public folder |
| Shell scripts | start.sh |
Railpack's language pages say how it picks each language's version and its start command.
Steer it from your repository
Your service's variables do not reach the build, so Railpack's RAILPACK_* variables cannot be set from OpenPanel. Steer it with files in the service's folder instead:
- Versions: the files each language already uses, such as
enginesinpackage.jsonor.nvmrcfor Node.js,.python-versionfor Python,.ruby-versionfor Ruby, or amise.toml. railpack.json: Railpack's own configuration, to force a language, change the install and build commands, or set the start command:
{
"$schema": "https://schema.railpack.com",
"provider": "node",
"deploy": {
"startCommand": "node dist/server.js"
}
}See Railpack's configuration file for every field.
The start command
The image starts with the command Railpack chose, or the one in railpack.json. A start command set on the service runs instead: --start "<command>" in the CLI or startCommand in the API, run with /bin/sh -c. See Service settings.
The port
OpenPanel does not tell your app which port to listen on. Make the app listen on the port you gave the service, for example by setting a PORT variable that your app reads:
openpanel env set PORT=3000 --project shop --service webWhen Railpack is not the right fit
Name a Dockerfile in the service's settings, and Docker builds with it instead. See Dockerfile builds.