GithubHelp home page GithubHelp logo

Comments (3)

goekay avatar goekay commented on August 18, 2024

the problem is not the redirection. even if we deactivate redirection, you still cannot achieve what you want. you can start multiple instances with the same ip, but not with the same port.

steve comes with an embedded web application server (jetty). when you start steve, we read parameters from file (ip/port) and first start jetty with these parameters. and if the port that you try to use is used by another application (read: another steve instance), jetty will fail to start, ergo, steve will fail to start.

if you want, you can leave ip and context path the same, and change the ip port for each steve instance, and do it like that.

the redirection itself i find useful because you do not have to type the whole path to go to the main page of steve.

historical info:
at the beginning, steve was just a web application and did not contain an embedded server. the idea was to start a separate web application server (tomcat) and deploy the web app to the server (read: copy the war file to the correct tomcat directory). with such a setup, you were able to start one server, and run multiple steve instances with different context paths within the server, since server is decoupled from applications. but this introduced some complexity in the configuration (you had to configure 1) tomcat and 2) steve in different places), and i was receiving questions how to set everything up. the users were not familiar with tomcat and did not know how to do it properly. for this reason, i decided to embed the server into steve, do the basic configuration in the code myself, and have all the possible parameters in one place (read: main.properties) to make it easier for the users. so, i do not want to go back to how it was at the beginning.

from steve.

goRaspy avatar goRaspy commented on August 18, 2024

Hi, tanks for the explanation. I will make some new tries. Thanks for your
suggestion.

You tell "if you want, you can leave ip and context path the same, and
change the ip for each steve instance, and do it like that."
But I think you would tell "change the PORT for each steve instance".

With an external config file it should be very easy to manage.

Concerning historical. I confirm you, my firsts test with Steve was not
easy due to tomcat configuration ^^

Many thanks

2016-08-17 13:25 GMT+02:00 Sevket Gรถkay [email protected]:

the problem is not the redirection. even if we deactivate redirection, you
still cannot achieve what you want. you can start multiple instances with
the same ip, but not with the same port.

steve comes with an embedded web application server (jetty). when you
start steve, we read parameters from file (ip/port) and first start jetty
with these parameters. and if the port that you try to use is used by
another application (read: another steve instance), jetty will fail to
start, ergo, steve will fail to start.

if you want, you can leave ip and context path the same, and change the ip
for each steve instance, and do it like that.

the redirection itself i find useful because you do not have to type the
whole path to go to the main page of steve.

historical info:
at the beginning, steve was just a web application and did not contain an
embedded server. the idea was to start a separate web application server
(tomcat) and deploy the web app to the server (read: copy the war file to
the correct tomcat directory). with such a setup, you were able to start
one server, and run multiple steve instances with different context paths
within the server, since server is decoupled from applications. but this
introduced some complexity in the configuration (you had to configure 1)
tomcat and 2) steve in different places), and i was receiving questions how
to set everything up. the users were not familiar with tomcat and did not
know how to do it properly. for this reason, i decided to embed the server
into steve, do the basic configuration in the code myself, and have all the
possible parameters in one place (read: main.properties) to make it easier
for the users. so, i do not want to go back to how it was at the beginning.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#26 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJnQzDmyNjm5cKWCpNujCiz5Xmtite8-ks5qgu-7gaJpZM4JmQVk
.

from steve.

goekay avatar goekay commented on August 18, 2024

yes. that's right. i meant port and not the ip.

from steve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.