Results: 24 Sort by: Relevancy | Date

 

adrexia

Oh, it might be SS_STATIC_BASE_URL that needs to be set?

adrexia

closest environment variable there would be SS_STATIC_BASE_URL. I’m not sure if that’s used in this context or nor

zanderwar

man..

  1. protected static $permissions = [
  2. 'file' => [
  3. 'public' => 0744,
  4. 'private' => 0744,
  5. ],
  6. 'dir' => [
  7. 'public' => 0744,
  8. 'private' => 0744,
  9. ]
  10. ];
alt

previously I was using $this->stat('my_private_static_var'). I see now I'm to use $this->config()->get(). How do I mark my var as configable?

colin

Protip for anyone having weird permission errors with SS4 deployments... add this to your app config:

  1. SilverStripe\Assets\Flysystem\AssetAdapter:
  2. file_permissions:
  3. public: 0644
  4. private: 0644
  5. dir:
  6. public: 0755
  7. private: 0755
null

Ah, the behaviour was changed from PHP 5.6. It used to be a fatal error: http://php.net/oop5.static