Coder Social home page Coder Social logo

Directory not found about grunt-php HOT 9 CLOSED

sindresorhus avatar sindresorhus commented on August 19, 2024
Directory not found

from grunt-php.

Comments (9)

sindresorhus avatar sindresorhus commented on August 19, 2024

What OS and Node version?

Does $ php -S localhost:3000 -t ../ work for you?

from grunt-php.

JustinElst avatar JustinElst commented on August 19, 2024

Windows 10
Node v0.12.7
"Does $ php -S localhost:3000 -t ../ work for you?" no.

With version 1.5.0 of your module it works fine though options:
port=8080, hostname="localhost", base="../", keepalive=false, open, bin
="php", silent=false, env={}, directives={}, router="D:**/router.php"

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

Can you try 5b18aee and see if that solves it for you?

from grunt-php.

JustinElst avatar JustinElst commented on August 19, 2024

this does start the server and reports:
Document root is correct-path
But php is still using my grunt folder for the document root and not its parrent folder.

from grunt-php.

JustinElst avatar JustinElst commented on August 19, 2024

Do you have any idea what the problem might be?

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

Not really. Submitting a failing test would help move this forward faster. I don't have time to look into this right now.

from grunt-php.

4Z4T4R avatar 4Z4T4R commented on August 19, 2024

Try this: 4Z4T4R@6ce0c04

from grunt-php.

johnstonian avatar johnstonian commented on August 19, 2024

@sindresorhus,

I think something is up with the npm package. I ran npm update to get grunt-php 1.5.1. However, the php.js file didn't change. Experienced the same issue as @MrGekko.

However, if I manually modify php.js to include the new lines from the latest commit, the plugin works with the base variable set at "../", or even "./"

Even running npm install [email protected] doesn't grab the latest changes for the php.js file. It appears to be the same file from version 1.5.0. Could something be wrong with the package being served from npm?

The following are the lines I manually added to php.js file in the appropriate places to make the plugin work on my local machine:

var path = require('path');

and

args.push('-t', path.resolve(options.base));

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

The task is now correctly resolving the base option:

spawnArguments.push('-t', path.resolve(options.base));

Open a new issue if this is still a problem.

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.