docksal / boilerplate-drupal8

[ARCHIVED] Drupal 8 boilerplate project powered by Docksal
https://docksal.io
68 stars 60 forks source link

@docksal drush alias not available after clean install #18

Closed vinmassaro closed 6 years ago

vinmassaro commented 6 years ago

I am new to Docksal and am testing out the drupal8 sample project to get acquainted. After getting it going, I am finding the default drush alias does not seem to be available for me. Thank you.

Expected result @docksal drush alias would be available when typing fin drush sa.

Actual result @none is the only alias available.

Steps to reproduce

$ git clone git@github.com:docksal/drupal8.git && cd drupal8
Cloning into 'drupal8'...
remote: Counting objects: 42945, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 42945 (delta 6), reused 0 (delta 0), pack-reused 42929
Receiving objects: 100% (42945/42945), 26.18 MiB | 12.64 MiB/s, done.
Resolving deltas: 100% (18003/18003), done.
Checking out files: 100% (13604/13604), done.

$ fin init
Step 1  Initializing stack...
Removing containers...
Removing drupal8_web_1 ... done
Removing drupal8_cli_1 ... done
Removing drupal8_db_1  ... done
Removing network drupal8_default
Removing volume drupal8_project_root
Volume docksal_ssh_agent is external, skipping
Starting services...
Creating network "drupal8_default" with the default driver
Creating volume "drupal8_project_root" with local driver
Creating drupal8_cli_1 ...
Creating drupal8_db_1 ...
Creating drupal8_cli_1
Creating drupal8_cli_1 ... done
Creating drupal8_web_1 ...
Creating drupal8_web_1 ... done
Waiting for drupal8_cli_1 to become ready...
Connected vhost-proxy to "drupal8_default" network.
Waiting 10s for MySQL to initialize...
 Step 2  Initializing site...
Making site directory writable...
Copying /var/www/docroot/sites/default/settings.local.php...
You are about to DROP all tables in your 'default' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a while. Consider using the --notify global option.
Installation complete.  User name: admin  User password: Wf2mVRg4wq
Congratulations, you installed Drupal!

real    0m32.203s
user    0m10.450s
sys 0m6.480s
DONE!  Open http://drupal8.docksal in your browser to verify the setup.

$ fin drush cc drush
'drush' cache was cleared.

$ fin drush sa
@none

$ fin drush @docksal status
Could not find the alias @docksal
achekulaev commented 6 years ago

@vinmassaro you need to cd to docroot and try fin drush sa from there. That's how drush works.

vinmassaro commented 6 years ago

That was it, thanks. Closing.