Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change Figwheel server-port #744

Open
zendevil opened this issue Feb 24, 2020 · 1 comment
Open

Unable to change Figwheel server-port #744

zendevil opened this issue Feb 24, 2020 · 1 comment

Comments

@zendevil
Copy link

I am changing the server port of Figwheel like so:

{:builds [
                                           {:id           "ios"
                                            :source-paths ["src" "env/dev"]
                                            :figwheel     {:server-port 3450}
                                            :compiler     etc..
                                  } etc...]

But this gives me the error:

The key :server-port at (:all-builds 0 :figwheel) is on the wrong path.

  {:all-builds
   [{:figwheel
     {:server-port 3450
      ^---- The key :server-port has been misplaced
      }}]}

The :server-port key should probably be placed like so: 

  {:figwheel-options
   {:server-port 3450
    ^---- The key :server-port should probably be placed here
    }}

What am I doing wrong?

@mengu
Copy link

mengu commented Apr 27, 2020

@zendevil, i don't know your figwheel version but you should define :figwheel as a key under the defproject declaration.

(defproject myproject "0.1.0"
  ;; some definitions here
  :figwheel { 
    :server-port 3450
    :css-dirs "resources/public/css"
    :ring-handler some.nice/handler }
 ;; rest of the definitions
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants