https://github.com/webwash/drupal-bootstrap-live-demo-site
Demo site for the Drupal live site build live stream series.
https://github.com/webwash/drupal-bootstrap-live-demo-site
bootstrap drupal examples webwash webwash-example
Last synced: over 1 year ago
JSON representation
Demo site for the Drupal live site build live stream series.
- Host: GitHub
- URL: https://github.com/webwash/drupal-bootstrap-live-demo-site
- Owner: WebWash
- License: gpl-2.0
- Created: 2020-05-27T04:51:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:07:58.000Z (over 3 years ago)
- Last Synced: 2024-03-26T14:05:32.331Z (about 2 years ago)
- Topics: bootstrap, drupal, examples, webwash, webwash-example
- Language: PHP
- Homepage: https://www.webwash.net/?p=14441
- Size: 1.14 MB
- Stars: 11
- Watchers: 2
- Forks: 6
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Drupal LIVE Site Build Demo Site
This is a demo Drupal site which was built in the [Drupal Live Site Build (Using Bootstrap)](https://www.youtube.com/playlist?list=PLL73GOh1BF-l3EoSLA9wb0888n7ybc4ER) video series.
**WARNING: THIS SITE SHOULD NOT BE USED IN PRODUCTION. USE AT YOUR OWN RISK. UPGRADES WILL NOT BE SUPPORTED.**
## Installation
This site can be set up in two ways: using [Lando](https://docs.lando.dev/basics/installation.html) or custom LAMP/MAMP/XAMPP.
### Option 1: Set up using Lando
1. Download and Install [Lando](https://docs.lando.dev/basics/installation.html).
2. Clone this repository.
3. Run `lando start` from within the repository.
4. Run `lando install-drupal` command. This will install Drupal using the configuration files within `config/sync`.
5. Then log into the site (go to `/user/login`): username: `admin` and password: `admin`.
### Option 2: Set up using Custom Stack
1. Clone this repository.
2. Run `composer install` from within the cloned repository.
3. Go open `web/sites/default/settings.local.php` and scroll to the bottom and modify the `$databases` array for custom set up
```php
$databases['default']['default'] = array (
'database' => 'drupal8',
'username' => 'root',
'password' => 'drupal8',
'prefix' => '',
'host' => 'localhost',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);
```
Make sure you enter in the correct database, username, password and host.
4. Then install the site by running: `./vendor/bin/drush site-install -y --account-pass=admin --existing-config`
6. Then log into the site (go to `/user/login`): username: `admin` and password: `admin`.
## FAQs
#### Q: I ran `lando install-drupal` and got the error below?
```
$ lando install-drupal
// You are about to CREATE the 'drupal' database. Do you want to continue?: yes.
[warning] Failed to drop or create the database. Do it yourself before installing. ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111 "Connection refused")
[notice] Starting Drupal installation. This takes a while.
In install.core.inc line 974:
Resolve all issues below to continue the installation. For help configuring your database server, see the installation handbook, or contact your hosting provider.
- Failed
to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] Connection refused.
- Is the database server running?
- Does the database exist or does the database user hav
e sufficient privileges to create the database?
- Have you entered the correct database name?
- Have you entered the correct username and password?
- Have you entered the correct database hostname and port number?
```
A: This means that Drush can't connect to the database.
Open `web/sites/default/settings.local.php` and make sure the `$databases` array is using the credentials below:
```php
$databases['default']['default'] = array (
'database' => 'drupal8',
'username' => 'drupal8',
'password' => 'drupal8',
'prefix' => '',
'host' => 'database',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
'driver' => 'mysql',
);
```
- database: drupal8
- username: drupal8
- password: drupal8
- host: database