Skip to content

Instantly share code, notes, and snippets.

@davidjguru
Last active October 4, 2020 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidjguru/1d72134f0e497d0b2a57c881c5647c60 to your computer and use it in GitHub Desktop.
Save davidjguru/1d72134f0e497d0b2a57c881c5647c60 to your computer and use it in GitHub Desktop.
Ultra-lightweight deploy of Drupal setup (without Apache or MySQL)

Pre-requisites

You will need a initial PHP setup in your OS. If you're in Debian / Ubuntu use the next gist in order to execute a basic script for installing the resources.
Gist: Installing a basic PHP setup in Debian / Ubuntu (7.4): https://gist.github.com/davidjguru/18e53e39a569a12ea79595ed7971b739.

Fast local deploy

:~$ cd workspace/
:~$ composer create-project drupal/recommended-project drupal_decoupled
:~$ cd drupal_decoupled/
:~$ composer require "drupal/jsonapi_extras" "drupal/paragraphs" "drupal/consumers" "drupal/simple_oauth" "drupal/subrequests"
:~$ php web/core/scripts/drupal quick-start standard

Feedback from prompt:

17/17 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓]
Congratulations, you installed Drupal!
Username: admin
Password: MEsA7G1n9wiv1YyF
Drupal development server started: http://127.0.0.1:8888
This server is not meant for production use.
One time login url: <http://127.0.0.1:8888/user/reset/1/1601809256/ BZBnlutimHfAkuyTIWOVCwmbT1AKkgZY9aWwpT0GLBU/login>
Press Ctrl-C to quit the Drupal development server.

Drupal will be available in http://127.0.0.1:8888/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment