grunt-deployments
grunt-deployments copied to clipboard
Sed error changing URL
$$ grunt db_pull --target="prod" Running "db_pull" task
Pulling database from 'Production' into Local Creating DUMP of remote database
Database DUMP succesfully exported to: backups/prod/20140730/00-07-49/db_backup.sql Replacing 'www.production.com' with 'www.local.com' in the database. sed: can't read s#www.production.com#www.local.com#g: No such file or directory Database references succesfully updated.
It appears to be treating the edit string like the file name.
Despite the fact that it says references were updated, there is no output file created.
Looks like an extraneous null parameter on the tpls string:
search_replace: "sed -i '' 's#<%= search %>#<%= replace %>#g' <%= path %>",
Changing it to
search_replace: "sed -i 's#<%= search %>#<%= replace %>#g' <%= path %>",
seems to solve the problem.