I created a war file named my_sample.war
and run java -jar my_sample.war
. It runs at port 8080
as default value. What do I do to change it to port 3000
. Thanks!
How to run warbler (jruby on rails) on different port rather than 8080
212 views Asked by Samuel At
1
You should be able to pass the port to the
java
invocation like so:Alternatively, setting the environment variable
PORT
should work: