Giter VIP home page Giter VIP logo

Comments (4)

weibeld avatar weibeld commented on June 11, 2024 7

Hi, yes, the permissions will not be set, because the build is performed in a separate sandboxed build container, and changes you make to the environment of this build container (e.g. environment variables and file permissions) are not propagated to the production containers (dynos), only the raw files of your application are copied to the production dynos.

The solution to your problem is to use a .profile file: create the file .profile in the root directory of your app and put the command chmod -R 777 Storage in it. This file will be sourced at the startup of each production dyno, and your permissions will be set at production time. This is described here.

from heroku-buildpack-run.

brenoos avatar brenoos commented on June 11, 2024 1

Thanks for the help man =)

from heroku-buildpack-run.

weibeld avatar weibeld commented on June 11, 2024

Good to know that it worked for you 👍

from heroku-buildpack-run.

wanghaisheng avatar wanghaisheng commented on June 11, 2024

@weibeld sir a little help
i got procfile like

web: chmod 777 docker_build.sh && ./docker_build.sh && python main.py --port=$PORT

after deploy run ls -al it still rwx

-rwx------ 1 u59997 dyno 12605504 Apr 13 21:11 ./ksubdomain

when build it is
-rwxrwxrwx 1 root root 12605504 Apr 7 09:56 ./ksubdomain

from heroku-buildpack-run.

Related Issues (7)

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.