org-roam / org-roam-server

A Web Application to Visualize the Org-Roam Database
MIT License
639 stars 51 forks source link

Is there a way to change the default HTTP port? #17

Closed jagross closed 4 years ago

jagross commented 4 years ago

I'm really enjoying using this code in my org-roam setup.

I'm working on a website, and I debug changes to the website on a localhost web server running on port 8080. It would be nice if I could change the HTTP port for the org-roam-server to something other than 8080 so I can use both at the same time.

Is there a way to do this?

Thanks!

goktug97 commented 4 years ago

Yes, you can set httpd-port before starting the server.

(require 'simple-httpd)
(setq httpd-port 8888)

https://github.com/org-roam/org-roam-server/issues/11

jagross commented 4 years ago

Thank you!

goktug97 commented 4 years ago

Added port as a customizable variable. For example;

(use-package org-roam-server
  :ensure t
  :config (setq org-roam-server-port 8888))