GithubHelp home page GithubHelp logo

kmamar / drupal-bootstrap-live-demo-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webwash/drupal-bootstrap-live-demo-site

0.0 1.0 0.0 773 KB

Demo site for the Drupal live site build live stream series.

Home Page: https://www.webwash.net/?p=14441

License: GNU General Public License v2.0

PHP 95.64% HTML 2.47% CSS 1.28% JavaScript 0.61%

drupal-bootstrap-live-demo-site's Introduction

Drupal LIVE Site Build Demo Site

This is a demo Drupal site which was built in the Drupal Live Site Build (Using Bootstrap) 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 or custom LAMP/MAMP/XAMPP.

Option 1: Set up using Lando

  1. Download and Install Lando.

  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

$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.

  1. Then install the site by running: ./vendor/bin/drush site-install -y --account-pass=admin --existing-config

  2. 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 <a href="https://www.drupal.org/docs/8/install">installation handbook</a>, or contact your hosting provider.<div class="item-list"><ul><li>Failed
   to connect to your database server. The server reports the following message: <em class="placeholder">SQLSTATE[HY000] [2002] Connection refused</em>.<ul><li>Is the database server running?</li><li>Does the database exist or does the database user hav
  e sufficient privileges to create the database?</li><li>Have you entered the correct database name?</li><li>Have you entered the correct username and password?</li><li>Have you entered the correct database hostname and port number?</li></ul></li></ul>
  </div>

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:

$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

drupal-bootstrap-live-demo-site's People

Contributors

ivanzugec avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.