Skip to content

Running hydrajetty on a port other than 8983

Chris Beer edited this page Sep 2, 2014 · 1 revision

In development mode, if you want to run jetty on a different port (maybe because you're already running a different hydrajetty on 8983 for a different app like MIRA or a multi-head demo), there are number of places the port number needs to be modified:

  1. Update config/jetty.yaml - change the jetty port number as desired in this file. The setting here controls which port is used when you issue the command rake jetty:start
  2. Update config/solr.yaml - replace all references to 8983 with the port you chose in step 1.
  3. Update config/fedora.yaml - replace all references to 8983 with the port you chose in step 1.
  4. Update the server port in the fedora config files:
    1. Update jetty/fedora/default/server/config/fedora.fcfg and update the server port (search for 8983)
    2. Update jetty/fedora/test/server/config/fedora.fcfg and update the server port (search for 8983)

After you've updated the jetty port number in these locations, start jetty as usual rake jetty:start, start any other services or queues your application needs, and, lastly, start your application bundle exec rails server. You should now be running your development server against jetty at the chosen port.

If you want to run your rails server on a different port, use bundle exec rails server -p 3000, but replace 3000 with the server port you'd like to use

Clone this wiki locally