Timeline for Using Drush without local copy of Drupal, only calling site aliases - No site aliases found
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 7, 2019 at 14:03 | comment | added | greg_1_anderson | I cannot think of a reason why a well-formed alias file would appear in the 'Alias paths:' debug log and yet not be found by Drush. More in-depth debugging will be required. If you find a bug in Drush, an issue or pull request would be appreciated. | |
Aug 6, 2019 at 20:29 | comment | added | radimklaska |
The wonders of text formatting... In summary, I created simple alias under key local and I defined only root and uri . I tested this alias file in another project. Drush found it properly. Then I moved it into the described project and drush sa can't find it.
|
|
Aug 6, 2019 at 20:17 | comment | added | radimklaska |
I created very simple site alias in another project and tested it: ✔ rk:~/www/mysite/docroot> drush sa --format=list @mysite.remoteproject.local then I moved the alias file into the test environment described in the original post: ✔ rk:/tmp/drushtest> cat drush/sites/remoteproject.site.yml local: root: /home/radimklaska/www/mysite/docroot uri: http://mysite.localhost ✔ rk:/tmp/drushtest> vendor/bin/drush sa --config=drush.yml [success] No site aliases found.
|
|
Aug 6, 2019 at 19:27 | comment | added | greg_1_anderson | Hm I am not sure what happens if the .yml file is invalid. Try removing it, and put in a very simple example site alias file. According to the --debug output, you should be seeing your aliases. If you get a simple working example, you can keep adding to it until you have something that fully works. | |
Aug 6, 2019 at 19:25 | comment | added | radimklaska |
./vendor/bin/drush sa returns No site aliases found. :(
|
|
Aug 6, 2019 at 19:19 | history | answered | greg_1_anderson | CC BY-SA 4.0 |