Re: How to override the default port on 3000?

2014-02-26 Thread action
It's ok! Think you for all the answer! 在 2014年2月25日星期二UTC+8下午10时21分05秒,action写道: I do like this: #lein new compojure-app guestbook #cd guestbook #lein ring server The server runs on port 3000 by default. But how to override the default port? Such as runs on port 80? thinks -- You

How to override the default port on 3000?

2014-02-25 Thread action
I do like this: #lein new compojure-app guestbook #cd guestbook #lein ring server The server runs on port 3000 by default. But how to override the default port? Such as runs on port 80? thinks -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: How to override the default port on 3000?

2014-02-25 Thread Timothy Washington
Try this. *lein ring server-headless pick-your-port ;; port 80 usually requires root permissions* Tim Washington Interruptsoftware.com http://interruptsoftware.com On Tue, Feb 25, 2014 at 9:21 AM, action actioncao2...@gmail.com wrote: I do like this: #lein new compojure-app guestbook

Re: How to override the default port on 3000?

2014-02-25 Thread Jason Stewart
The lein-ring plugin accepts a port number as an argument: lein ring server 8080 Note, that in order to bind to port 80, you will need elevated (root) privileges. On Tue, Feb 25, 2014 at 9:21 AM, action actioncao2...@gmail.com wrote: I do like this: #lein new compojure-app guestbook #cd

Re: How to override the default port on 3000?

2014-02-25 Thread Josh Kamau
you can also change this line on your project.clj :ring {:handler myproject.handler/app :port 8080} Josh On Tue, Feb 25, 2014 at 5:23 PM, Jason Stewart jstew...@fusionary.comwrote: The lein-ring plugin accepts a port number as an argument: lein ring server 8080 Note, that in order to

Re: How to override the default port on 3000?

2014-02-25 Thread Rob Day
If you do want to use port 80, it's generally safer to use a reverse proxy like nginx to listen on port 80 and forward to port 3000 - that way your code doesn't need root privileges and is less of a security headache. On 25 February 2014 14:59, Josh Kamau joshnet2...@gmail.com wrote: you can