Coder Social home page Coder Social logo

Comments (10)

sindresorhus avatar sindresorhus commented on August 19, 2024

I just published a 0.1.1 which now correctly kills PHP when done. Can you try it out?

If that doesn't solve it, please try and download the repo and and run npm test a couple of times. Does it pass?

from grunt-php.

carlesandres avatar carlesandres commented on August 19, 2024

Sindre,

Can you give me a hint on how to update from within yeoman?

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

It's the same as any other Node.js dependency; npm update grunt-php in your project folder

from grunt-php.

carlesandres avatar carlesandres commented on August 19, 2024

Ok. I had to create a new yeoman project which downloaded the new version of grunt-php because npm update grunt-php wouldn't update it, even if I changed package.json manually. But I am quite new to npm and this is probably off-topic here.

Anyway, in grunt-php 0.1.1 the PHP server is now properly killed when the keepalive option is absent or set to false.

I also installed grunt-php 0.1.1 by cloning the repo, run grunt on it and the test passed.

Thanks!

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

Thanks for testing :)

from grunt-php.

ullmark avatar ullmark commented on August 19, 2024

Hi, I've been having this trouble as well or maybe I've misunderstood what you can do with the task.
I've upgraded ti 0.1.1 and want to use it the following way.

In my project I have a "client" (js-app) folder, and a "server" (api in php) folder.

When I run grunt I would like to fire of a "connect" server on the client folder and a "php" server on the server folder.

so I want my default task to look like this

  grunt.registerTask('default', ['jshint', 'mocha', 'connect', 'php', 'watch']);

But I cant get the watch to run, regardless of keepalive

from grunt-php.

johannesjo avatar johannesjo commented on August 19, 2024

Same problem here. grunt-php blocks everything else.

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

@ullmark @johannesjo works for me:

https://github.com/sindresorhus/grunt-php#use-it-with-grunt-contrib-watch
https://github.com/sindresorhus/grunt-php/blob/master/Gruntfile.js#L38

from grunt-php.

mikemurray avatar mikemurray commented on August 19, 2024

Ran into this issue today. It seems to happen when you use localhost as your hostname in the config. Using 127.0.0.1 or 0.0.0.0 resolves this issue.

See this gist https://gist.github.com/mikemurray/6092566 for reference.

It may be helpful add this to the documentation.

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

@mikemurray done

from grunt-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.