Hello Everyone at LCM,
I think your template looks fantastic and ticks all the boxes for a "dream" build system for Drupal 8. But I am having trouble getting things up and running. This is the process I am following… But in the end I cannot access anything on http://localhost/8080. Can you see what I am missing?
These are the steps I have taken to try and get up and running with the scaffold.
composer create-project lastcall/drupal-scaffold PROJECTNAME
Move into the project root
I don't have nvm installed so I updated my version of npm with:
npm install npm@latest -g
Install nodejs dependencies
Install bower and composer dependencies
Edited the composer.json
, package.json
, and bower.json
and rename the project as needed.
Renamed the scaffold theme to match my project (including JS and SCSS files).
Edited the project readme.md.
Initialize a new git repository and push work to it as normal
git init && git add . && git commit
Create a repo on github and push to origin...
Everything to this point is smooth.
With all the peices in place I think the next step is to get Drupal installed with a database.
If I were using drupal-composer/drupal-scaffold and I would run:
drupal site:install standard --langcode="en" \
--db-type="mysql" --db-host="127.0.0.1" \
--db-name="databasename" --db-user="root" \
--db-pass="root-user-password" --db-port="3306" \
--site-name="Site Name" \
--site-mail="[email protected]" \
--account-name="admin" \
--account-mail="[email protected]" \
--account-pass="admin" \
--no-interaction
But I would like to use Docker and follow your repos build philosophy. So I ran:
docker-compose -f docker-compose.yml -f docker-compose.debug.yml up
I thought this would create a Docker container and a database and install Drupal and give me access to it at:
- Varnish: You can still access the site behind varnish as you would with only the default config at http://localhost:8080
- Drupal: You can directly access the Drupal site, bypassing the reverse proxy at http://localhost:8081
- MySQL: You can make a direct connection from the command line using
mysql -h 127.0.0.1 --port 33306 -u drupal -pdrupal drupal
However, when I go to http://localhost:8080 I get a "You don't have permission to access / on this server." with this kind of feedback from the console:
drupal_1 | 172.18.0.5 - - [03/Mar/2017:00:06:39 +0000] "GET / HTTP/1.1" 403 447 "-" "Mozilla/5.0 (Macintosh; Intel Mac O
S X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8"
drupal_1 | 172.18.0.5 - - [03/Mar/2017:00:18:42 +0000] "GET / HTTP/1.1" 403 447 "-" "Mozilla/5.0 (Macintosh; Intel Mac O
S X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8"
drupal_1 | [Fri Mar 03 00:18:42.082713 2017] [autoindex:error] [pid 16] [client 172.18.0.5:52858] AH01276: Cannot serve
directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index fo
rbidden by Options directive
Obvisously, I am missing a step...
BTW, I can access a database named drupal at: mysql -h 127.0.0.1 --port 33306
but there are no tables in it, So I guess Docker is not actually installing Drupal?
I have worked with just about every aspect of this build environement except for Docker...
Can you see what is missing in my attempt to get Drupal up and running and served in a Docker container using your template?
Thanks very much for your help,
Stephen