---
title: "Deploy Javelit App"
description: "A template to quickly deploy Javelit apps."
category: "Other"
url: https://railway.com/deploy/javelit-app
---

# Deploy Javelit App

A template to quickly deploy Javelit apps.

**[Deploy Javelit App on Railway](https://railway.com/template/javelit-app)**

- **Creator:** Javelit
- **Category:** Other
- **Total deploys:** 11

## Template content

### Javelit container

- **Image:** jbangdev/jbang:0.132.1-java-21
- **Start command:** `/bin/sh -c "jbang  javelit@javelit run ${APP_URL} --watch-remote ${SOURCE_REFRESH_INTERVAL} --port 3000"`
- **Public domain:** Yes

## Documentation

# Deploy and Host your Javelit App (standalone mode) on Railway

Javelit is a Java lightning fast data app development framework. Write your webapp as a simple Java class and deploy it in a minute with this railway template!  
Learn more on [GitHub](https://github.com/javelit/javelit).

## About Hosting Javelit App
This app uses the jbang docker image to launch Javelit, pointing to the app you provide via the `APP_URL`
variable. 
Your webapp is then deployed and available on the web with fully secured https and wss (secured websocket).

This app can automatically refresh if the code at the URL is changed. Enable this feature by passing a refresh interval in the `SOURCE_REFRESH_INTERVAL` variable.
 
## Common Use Cases
Everything Java that needs a frontend! 

- demo app
- analytics dashboard
- interactive data app
- ML/AI app 
- admin app 
- notebooks 
- devrel presentations

## Dependencies for Javelit Hosting

- **Java 21**
- **jbang** 
- **Javelit**
- add dependencies using JBang-style `//DEPS` comments at the top of your file.

### Deployment Dependencies
- [Official Javelit doc](https://docs.javelit.io/)
- [Deployment doc](https://docs.javelit.io/deploy)
- [GitHub project](https://docs.javelit.io/deploy)

### Implementation Details
- Once the app is deployed, enable serverless to make the Javelit app scale to zero when it's not used. 
- Make sure to set the RAM and CPU according to your app requirements. The trial plan of railway may not be able to support ML/AI use cases.
- If you tune the RAM and CPU, make sure to update the `JDK_JAVA_OPTIONS` variable that contains the JVM options. The default values are tuned for the Railway free trial.

## Why Deploy Javelit App on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Javelit App on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/javelit-app
