getting YN0028 The lockfile would have been modified by this install, which is explicitly forbidden. using yarn berry and heroku

I was able to workaround by setting the env-var YARN_ENABLE_IMMUTABLE_INSTALLS to false, as suggested here. This is likely a bug in Yarn Berry. I’ve reported it here: https://github.com/yarnpkg/berry/issues/2948 UPD: I have created a fresh local clone of the repo from GitHub, ran yarn install in it, and it did produce changes in yarn.lock. Committing those … Read more

Running Cron Tasks on Heroku

I’m not entirely sure what you mean by “run my own cron tasks manually”. For cron specifically, you need access to crontab, which they can control, as they’re their servers. If you have another way of doing it, it would probably be fine, but bear in mind that your app is not tied to a … Read more

Proper way to handle static files and templates for Django on Heroku

You should store them externally on a service like S3 – while Heroku can serve static files, it’s not designed to. Here’s a good primer on getting started with S3: https://devcenter.heroku.com/articles/s3 Use django-storages http://django-storages.readthedocs.org/en/latest/index.html to collect static files to your S3 bucket and serve them accordingly. These are the necessary settings you’ll need to have … Read more

Deploy two separate heroku apps from same git repo

The solution suggested by rdegges unfortunately does not work anymore. See: The web process type is special as it’s the only process type that will receive HTTP traffic from Heroku’s routers. Other process types can be named arbitrarily. from the Heroku documentation. So you won’t be able to have api and web in a Procfile … Read more

What is the purpose of vendor/bundle? Heroku tells me to remove it

If you have the vendor/bundle directory in your project then at some point you must have run the bundle command with the –path vendor/bundle argument. This will load the files for all your project’s gems (listed in Gemfile) into the vendor/bundle directory in your local project rather than to a system gem location. You would … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)