configure variable in VM ARGUMENTS

I would like to know how do I create a variable "VM Arguments" in the railway environment?

currently I have a java application that basically needs a variable configured in the "vm arguments" to raise the properties according to the information. Highlighting, I've tried to create the variable in the variables tab, but without success.

PROJECT ID: 6a70ac91-fc4e-46cf-8737-90c8c2dca9b0
Use -Dspring.profiles.active-prod
Jump to solution
tell me more about this VM arguments variable, where would it normally be used? in the docker run command or something?
also, do not open duplicate threads please
Sorry for the duplicate thread. I'm new to the platform lol..

But then... this variable can be used in the "Arguments" tab of the JAVA project. Currently, I have configured a spring profile. Aiming to have control of a properties for development and production environment. However, in my local environment I can set this variable as follows (attached image). However, when trying to do this configuration on the server, I don't get success.
@aleks this seems like something you'd know how to do
Hmm, I might have some ideas.
Let me go brave search some stuff
Try setting the JAVA_OPTS variable in the Variables tab to the options you want.
as instructed, I tried to define the JAVA_OPTS variable, but I was not successful, as shown below. I also tried defining the variable in other ways as you can see, but without success
Use -Dspring.profiles.active-prod
it worked, friend. I put it wrong and didn't even pay attention. Thanks a lot for the support
No problem! Glad it's working now

Looking for more? Join the community!

Recommended Posts
uhmm i think i filled the entire disk somehowservice id: 66b587c8-3c50-4dd0-8dfa-394ade04a0eci want to deploy a wordpres, is it possible?project id fb928ae2-62f0-4f8f-be68-9f7902efbebdBilled per usage plan with carryoverHey guys, I'm currently on a usage based plan but my app is only projected to use $1.70/month. Will How to use the Kafka project?I'm relatively new to Kafka and I want to publish and consume events to the Kafka running in a kafkaCannot login to Railway.app this morningHere's what I'm doing to login: I go to railway.app, and select Login enter my email address and preRelative path issueI am trying to read some Json files and parse them with one of my services. Locally it works fine. Can't run Railway CLI down command with project tokenhey , it is possible to run the railway down command with railway project token without logging in. Ruby on Rails Deployment with database and redisi had a few questions about linking my database and redis server within railway app ... I tried but Lost all my 20$ credits out of no whereSo i just got an email saying my projects needs 3$ in credits, but suddenly when i check? my whole 2any reason why my usage suddenly jumps to 4GB when there are no tasks running?The app had no requests for for the entire day but the usage jumped, any reason why this could happei want to dowload my post gre db locallyhow can i dowload my post-gre db locallyCloudflare custom domain not workingI just upgraded the api for Cloudflare, but the custom domain is no longer workingError: Unsupported Gradle version: 8============== Using Nixpacks ============== context: 78ee202a04734b630f61d71bea3f81cd  NixpacksOSError: libheif.so.1: cannot open shared object file: No such file or directoryHello, I have tried everything i can to get my django project deployed, the build completes, but depFlask app not workinghey there am very new to railway, i would love to get some help, I am not familiar with hosting a weAverage Cost of Ghost CMS Blog?Hi so I've recently moved over to Railway.app, after hearing great things about it and getting boggewebhook outdated docs and issuesHello First of, https://docs.railway.app/diagnose/webhooks this documentation seems outdated. I'm Configure GitHub PATHow do I configure my GitHub PAT (Personal Access token) while deploying my nestJS app on railway?How can I SSH into my CLI application?Hello, I have an CLI python app deployed but I need to connect to the service. I couldnt find how. IPostgres pricing questionsI'm starting to index a few data to my railway postgres. I need to clarify a few questions: 1. Wha