Saleor: When I set GS_STORAGE_BUCKET_NAME , it throwed "Cannot determine path without bucket name"

Created on 3 Feb 2020  Â·  3Comments  Â·  Source: mirumee/saleor

What I'm trying to achieve

…

Steps to reproduce the problem

  1. set GS_STORAGE_BUCKET_NAME
  2. docker-compose run --rm web python3 manage.py collectstatic

What I expected to happen

…

Screenshots

image

System information
Operating system:

Most helpful comment

Hi!

How it looks your docker compose ?
The error mentions that you need to specify the bucket name, besides this
you could try to run the docker compose command like this :

docker-compose run -e GS_STORAGE_BUCKET_NAME=$VALUE --rm web python3 manage.py collectstatic

I added GS_BUCKET_NAME = GS_STORAGE_BUCKET_NAME in settings.py, and it worked well.

All 3 comments

Hi!

How it looks your docker compose ?
The error mentions that you need to specify the bucket name, besides this
you could try to run the docker compose command like this :

docker-compose run -e GS_STORAGE_BUCKET_NAME=$VALUE --rm web python3 manage.py collectstatic

Hi!

How it looks your docker compose ?
The error mentions that you need to specify the bucket name, besides this
you could try to run the docker compose command like this :

docker-compose run -e GS_STORAGE_BUCKET_NAME=$VALUE --rm web python3 manage.py collectstatic

I added GS_BUCKET_NAME = GS_STORAGE_BUCKET_NAME in settings.py, and it worked well.

Well done! ;)

Was this page helpful?
0 / 5 - 0 ratings