Giter Site home page Giter Site logo

Comments (7)

f3l1x avatar f3l1x commented on May 28, 2024

Yes. You have to use /tmp for cache or logs.

from php.

denusklo avatar denusklo commented on May 28, 2024

Can you suggest any ways to handle that?

is it add cache handler at vercel.json env field?

image

from php.

f3l1x avatar f3l1x commented on May 28, 2024

Using ENV is great way. Is it working correctly?

from php.

denusklo avatar denusklo commented on May 28, 2024

image

I have added cache path, but now the session is missing when I try to assess $_SESSION, where should session path locate?

from php.

denusklo avatar denusklo commented on May 28, 2024

image

the session and cache path I set.

but got this error

image

to solve this error I have tried to set build scripts at package.json to

  • make new folder `tmp/sessions
  • set the permission
  • and list all file at /tmp folder (below is the vercel build log)
    image

Which step did I did wrong, is it the path for sessions is set wrong?

from php.

f3l1x avatar f3l1x commented on May 28, 2024

There is only /tmp path. If you need deeper structure, you have to create somehow. For example /tmp/sessions, because php will not create /tmp/sessions itself.

from php.

denusklo avatar denusklo commented on May 28, 2024

fyi I have already make a build script in package.json:

image

and run it in vercel.json:

image

and it actually ran when building vercel runtime:

image

from 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.