grunt-deployments icon indicating copy to clipboard operation
grunt-deployments copied to clipboard

Sed error changing URL

Open ghost opened this issue 11 years ago • 1 comments

$$ 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.

ghost avatar Jul 30 '14 00:07 ghost

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.

ghost avatar Jul 30 '14 19:07 ghost