Installation Guide
Learn how to install Drupal 7 NES using Direct Download, Composer, or Drush installation methods.
Installation Methods
HeroDevs offers three methods for downloading and installing Drupal 7 NES: Composer Installation, Direct Download and Manual Installation, and Drush Installation
If you need a different installation method, please contact sales@herodevs.com.
ALWAYS back up your site before installing Drupal 7 NES.
ALWAYS test Drupal 7 NES on a local or development environment before pushing to production.
Direct Download and Manual Installation
Download using command line tools like cURL by setting authentication headers.
Download Package
Set your access token to an environment variable
Use cURL or wget to download the tarball into your project root:
Installation
Be sure to back up your codebase before running the following command!
Unzip the archive over your existing site:
Example if your Drupal codebase is in the project root:
Example if your Drupal codebase is in a subfolder like web
or docroot
:
The unzip -o
flag overwrites your existing files and adds new ones from the archive. It does not remove files that are not in the archive. However, always back up your codebase before making changes.
Cleanup
Clear cache and check for any database changes:
Verify your site works as expected.
At this point you can remove the downloaded .zip file from your folder.
Composer Installation
Authentication Setup
Create an auth.json
file or update your existing one:
This file contains sensitive credentials and should be excluded from source control.
Repository Configuration
Add the HeroDevs repository to your composer.json
file:
Place this entry before packages.drupal.org
to ensure proper precedence.
Package Installation
First, add NES Drupal:
Then install dependencies:
Drush Installation
These instructions assume Drush is already installed on your system.
Download Package
Use cURL to fetch the tarball:
Create Make File
Create drupal7_nes.make
with the following content:
Update the file path to match your project structure.
Run Installation
Execute the make command and complete Drupal's installation: