dgrigg / craft-migration-assistant

Migration Manager for Craft CMS
Other
27 stars 10 forks source link

Environment variables and aliases are parsed instead of copied to migration #33

Closed roelvanhintum closed 3 years ago

roelvanhintum commented 3 years ago

This like @var and $VAR are more common, and even advised, now in craft cms settings. This is useful for multi environment websites. These are now parsed, so the actual migration file doesn't contain @var and $VAR but their values instead, which is not useful. This is reproducable on the site's siteUrl.

dgrigg commented 3 years ago

I will look into this. Craft must have changed when they are parsing those values which would affect how the migration gets the data.

dgrigg commented 3 years ago

@roelvanhintum which version of Craft are you running? I tested on Craft 3.6.3 and everything was migrated correctly. Also, where are you putting the @var $VAR values (Assets, Sections) when they are getting parsed?

dgrigg commented 3 years ago

@roelvanhintum did some digging, this appears to have only been an issue in the Site settings. Fixed the name and base url values to not parse the env variables.