WithCandour / statamic-aardvark-seo

Candour's SEO addon for Statamic
https://statamic.com/marketplace/addons/aardvark-seo
11 stars 18 forks source link

Redirects not picked up with git #141

Closed ottz0 closed 1 year ago

ottz0 commented 1 year ago

I have added my redirects on my testing server but the file is not getting picked up with git. So when i'm pushing and pulling my site, i'm losing the redirects.

I'm using the paid version of Ardvark SEO 2.0.28 and have seen issue thread #125.

I've added these lines into my .gitignore but still not picking up changes

!.gitignore
!/addons/aardvark-seo
!/statamic/addons/aardvark-seo
ottz0 commented 1 year ago

fix as per @devonbeard was to add to git git add storage/statamic/addons/aardvark-seo/* -f.

!.gitignore
!/addons/aardvark-seo
!/statamic/addons/aardvark-seo

did not work

aidanweltner commented 1 year ago

@ottz0 I know this issue is a little stale but I thought I was having a similar issue. I realized I could put the .gitignore rules in a more specific file. Make sure the rules are in the storage/statamic/.gitignore file. If that still doesn't work add the following to to the paths array in your config/statamic/git.php file

storage_path('statamic/addons/aardvark-seo'),
joshuanoyes commented 1 year ago

Make sure the rules are in the storage/statamic/.gitignore file

This is the correct approach according to the documentation - @ottz0 if this did not resolve the problem for you please reopen this issue. Thanks!