diegonetto / generator-ionic

Build hybrid mobile apps using the Ionic Framework
MIT License
1.74k stars 336 forks source link

grunt serve runs but without effect #250

Open zapphyre opened 9 years ago

zapphyre commented 9 years ago

Hi, the tittle is not that much true. The issue I'm having on newly generated blank ionic project is that 'grunt serve' runs without problem for all it's tasks, it even starts "ionic:serve" task but strange is that when I'm dirrected to 'http://localhost:8100/' page says: unable to connect. When I run 'ionic serve' in the folder, the index.html page is on. Strange. Even when I run 'grunt serve --verbose' I see NO line that could report any kind of issue, but without issuing 'ionic serve' explicitly, I can't get server/page on.

Can you suggest what could be the issue or where I should be looking? Thanks!

zapphyre commented 9 years ago

issue is with grunt-concurrent. to this date the newest version (2.0.3) is not working. need to revert to 1.0.0 https://github.com/diegonetto/generator-ionic/issues/210

newaeonweb commented 9 years ago

Hi, grunt serve command doesn't work for me, using ionic serve, the app broken with some AngularJS error, i followed the instructions on the readme file, may i made a mistake?

xcafebabe commented 9 years ago

Is this project alive?. Having same issue here with default scaffolded project.

EDIT: According to https://github.com/diegonetto/generator-ionic/issues/210#issuecomment-112570804 set logConcurrentOutput to false in concurrent.ionic.options and magic will happen.

 concurrent: {
      ionic: {
        tasks: [],
        options: {
          logConcurrentOutput: false
        }
correasebastian commented 9 years ago

same error Running "concurrent:ionic" (concurrent) task Running "ionic:serve" (ionic) task El sistema no puede encontrar la ruta especificada. Warning: Task "ionic:serve" failed. Used --force, continuing.

erictonussi commented 9 years ago

Thanks @xcafebabe , this works fine!

earcanal commented 9 years ago

+1 for this workaround