Challenges of using Node.js

Node.js is a powerful tool for executing server side javascript. But it’s too have some pitfalls.

  • It is not possible to use traditional servers (ex. Apache), so a good hosting company will be more difficult to find.a
  • Knowledge of Advanced Javascript is required.
  • The Node.js core is compact, you will need additional modules and customization for desired functions. You will need to learn what you can use best and how.
  • Node.js is primarily not designed for building websites, therefore it requires additional libraries like Express JS.
  • Quite a lot of development installs are needed: Node.js itself, Express JS, additional (require) modules, Git.

How to install latest version of Node.js

While installing node.js from the repository it often installs old version of the software. It’s best to update the software repository using-

$ sudo apt-get update

If the above commands does not provide you with the latest software then use-

$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash

Multisite in Drupal 8

Preface

  1. Setting up default main/root Drupal site- “domain.com”
  2. Setting a sub-site “staging.domain.com”
    • Prerequisites
      • Creating a staging folder
      • Creating settings.php
      • Creating a sites.php file
  3. Adding a virtual host entry for both main and staging site
    • Adding virtual host entries
    • Enable the site
    • Add entry in /etc/hosts file
  4. Restart Apache
  5. Setting up “staging.domain.com” site