Skip to main content
Improves code formatting
Source Link
kenorb
  • 14.3k
  • 10
  • 98
  • 168

It would probably be easier to use --root--root and --uri--uri instead of @main@main. Drush loads aliases on a per-user basis; the user you are testing drush @main elysia-cron probably has the @main@main alias defined in an alias file in ~/.drush~/.drush. You'd need to either move your aliases to a global location, or perhaps copy your alias file to the www-data user's .drush.drush folder.

It would probably be easier to use --root and --uri instead of @main. Drush loads aliases on a per-user basis; the user you are testing drush @main elysia-cron probably has the @main alias defined in an alias file in ~/.drush. You'd need to either move your aliases to a global location, or perhaps copy your alias file to the www-data user's .drush folder.

It would probably be easier to use --root and --uri instead of @main. Drush loads aliases on a per-user basis; the user you are testing drush @main elysia-cron probably has the @main alias defined in an alias file in ~/.drush. You'd need to either move your aliases to a global location, or perhaps copy your alias file to the www-data user's .drush folder.

Source Link
greg_1_anderson
  • 21.4k
  • 2
  • 38
  • 47

It would probably be easier to use --root and --uri instead of @main. Drush loads aliases on a per-user basis; the user you are testing drush @main elysia-cron probably has the @main alias defined in an alias file in ~/.drush. You'd need to either move your aliases to a global location, or perhaps copy your alias file to the www-data user's .drush folder.