An open API service indexing awesome lists of open source software.

https://github.com/ijortengab/drupal-autoinstaller

Drupal autoinstaller
https://github.com/ijortengab/drupal-autoinstaller

drupal

Last synced: 2 months ago
JSON representation

Drupal autoinstaller

Awesome Lists containing this project

README

          

# Drupal Auto Installer

The extension of `rcm`.

## Prerequisite

Login as root.

```
su -
```

If you start from empty virtual machine instance, it is recommend to upgrade
then restart machine to avoid interruption because of kernel update.

```
apt update -y
apt upgrade -y
init 6
```

Make sure `wget` command is exist.

```
apt install -y wget
```

## Install

### rcm

Download `rcm` from Github.

```
wget git.io/rcm
chmod a+x rcm
```

You can put `rcm` file anywhere in `$PATH`:

```
mv rcm -t /usr/local/bin
```

Always fast.

```
alias rcm='rcm --fast'
```

### rcm-drupal

Install `drupal` extension.

```
rcm install drupal
```

Enter value for `--url` option:

```
https://github.com/ijortengab/drupal-autoinstaller
```

Skip value for `--path` option. We use the default value.

## How to Use

Feels free to execute `drupal` command. You will be prompt to some required value.

```
rcm drupal
```

## Tips 1

Update if necessary.

```
rcm update drupal
```

## Tips 2

Install the additional extension.

```
rcm install drupal-adjust-file-system-outside-web-root --source drupal
```

Just execute.

```
rcm drupal-adjust-file-system-outside-web-root
```

Update if necessary.

```
rcm update drupal-adjust-file-system-outside-web-root
```

Bulk for all project.

```
while read project_name; do
while read domain; do
echo -ne "\e[93m"'# Execute:'"\e[39m" "\n"
echo -ne "\e[95m"rcm drupal-adjust-file-system-outside-web-root -- --project-name $project_name --domain $domain -- "\e[39m" "\n\n"
INDENT=' ' rcm drupal-adjust-file-system-outside-web-root -- --project-name $project_name --domain $domain --
done <<< `ls-drupal $project_name`
done <<< `ls-drupal`
```

## Tips 3

There are two additional commands for you.

```
ls-drupal
```

```
. cd-drupal
```

Select the projects, then run drush.

```
drush status
```