linemanjs / lineman-rails

Configures Lineman to deploy assets elegantly with Ruby on Rails
7 stars 1 forks source link

Cannot GET / even after setting proxy:enabled to false #3

Open st32lthx opened 9 years ago

st32lthx commented 9 years ago

I install lineman-rails and it works just fine with the rails backend, but I am not sure why I can't get the previous set up even after I disable proxy in application.js:

  server: {
    apiProxy: {
      enabled: false
      // host: 'localhost',
      // port: 3000
    }
  }

and it works just fine again after I uninstall lineman-rails.

Would appreciate any help.

Thanks.

searls commented 9 years ago

What are you referring to when you say "the previous set up"?

lineman-rails makes a few more changes than just the API proxy, it also disables the pages task, for example. All the changes are made here:

https://github.com/linemanjs/lineman-rails/tree/master/config/plugins

st32lthx commented 9 years ago

Sorry for the vague description. By the previous set up, I meant the initial set up, after doing lineman new myapp.

So is it possible to overwrite the settings in application.js and re-enable the disabled tasks ?

searls commented 9 years ago

Since the lineman-rails plugin does little else, I'd recommend just setting up the proxy yourself and going without the lineman-rails plugin