Comments (10)
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.
Sindre,
Can you give me a hint on how to update from within yeoman?
from grunt-php.
It's the same as any other Node.js dependency; npm update grunt-php
in your project folder
from grunt-php.
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.
Thanks for testing :)
from grunt-php.
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.
Same problem here. grunt-php blocks everything else.
from grunt-php.
@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.
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.
@mikemurray done
from grunt-php.
Related Issues (20)
- Add middleware options HOT 6
- watch livereload task works slow HOT 1
- Suppress loaded resources in shell? HOT 4
- KeepAlive: false HOT 1
- Problem running grunt-php in windows. HOT 1
- Here's how to setup this plugin with livereload HOT 1
- How can I specify which browser should be used with the 'open' parameter? HOT 7
- Couldn't find the PHP binary HOT 1
- hi can i use it with yeoman webapp generator?!! HOT 1
- Ability to add environment variables HOT 2
- Problem with router.php only when being ran from task HOT 6
- Directory not found HOT 9
- how can I set a variables in *.php HOT 3
- Build failing HOT 1
- mysqli class not found HOT 1
- how to: server config, .htaccess, 404 page file, etc. HOT 2
- Fatal error: Cannot set property 'build' of null HOT 1
- Checking if the grunt-php server is running HOT 1
- Is there a way to use HTTPS out of the box? HOT 1
- Rewrite rules HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-php.