Giter VIP home page Giter VIP logo

Comments (2)

judgej avatar judgej commented on August 21, 2024

I've not customised the image in any way. My intention is to use this as a simple development environment, using artisan serve to serve up the pages. It looks great because it supports PHP 7.4 and has everything laravel needs, but does not come with bunch of other containers that force assumptions about what I am going to need. (so thanks :-)

I'm going to guess this is a file permission problem rather than a file overlay problem, given those "file not found" messages (it knows the files are there, but cannot read them).

Doing an ls -lasR in the container, it turns out many of the files cannot be found. Possibly these are the files created in some parts of the install command:

docker run --rm --name print-trail-geo-app -v C:\Projects\my-app:/var/www/html -w /var/www/html laravel-7.4 composer create-project --prefer-dist laravel/laravel .

From a bash shell within the container:

bash-5.0# ls -las artisan
ls: artisan: No such file or directory

The auto-complete worked for that, so bash new the file was there.

This works fine:

touch xxx

I can see and access the file both within the container and on the host filesystem.

from laravel-docker.

judgej avatar judgej commented on August 21, 2024

Stranger and stranger. Just went into container bash, did ls -las and got the missing file errors as usual. Then did ls -lasR to list all files - a big list including the vendor directory. Then ls -las again, and now the missing files are visible and usable. Most odd, didn't touch anything else.

I'll close this issue as it seems to be fixed, butI suspect this is a mystery I won't be getting to the bottom of.

from laravel-docker.

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.