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
10 Replies
Project ID:
8c308834-dfad-4d96-9e11-243b8213f7b0
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
Solution
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