craft-blitz icon indicating copy to clipboard operation
craft-blitz copied to clipboard

Repository path ~/deploy is not a directory.

Open shifuma opened this issue 3 years ago • 3 comments

I'm trying to setup Blitz to deploy to Netlify and I'm getting the errror Repository path ~/deploy is not a directory.

I've followed the article on setting up, and my structure is:

  • Users
    • Me
      • Sites
        • MySite
          • cms
          • deploy

I've tried adding the full path to the directory Users/myuser/Sites/MySite/deploy but I'm getting the same error every time. What is that expecting / what I'm I doing wrong?

Remote Deployment Repo settings

Finder Folders

shifuma avatar Aug 04 '22 03:08 shifuma

~ is shorthand for your home directory, so I would expect ~/Sites/MySite/deploy and /Users/myuser/Sites/MySite/deploy to both work.

bencroker avatar Aug 04 '22 07:08 bencroker

Thanks for the reply. I get the 'is not a directory' error with both of those. There's no blitz.log written when saving these, and the only thing in the web.log is Plugin settings saved. One or more deployer connections failed.'

I'm running this locally with ddev. Do I need to account for the container?

shifuma avatar Aug 04 '22 23:08 shifuma

I'm running this locally with ddev. Do I need to account for the container?

Probably. The best way to set the path might be via an alias, so set it to @deploy and then in your general config file:

return [
    'aliases' => [
        '@deploy' => dirname(__DIR__, 2) . '/deploy',
    ],
];

bencroker avatar Aug 05 '22 08:08 bencroker

I forgot to comment but I got this working like this: '@deploy' => dirname(__DIR__) . '/web/deploy',

Not sure if that's correct but it did what I needed it today. Thanks!

shifuma avatar Oct 15 '22 01:10 shifuma