-
Initiate Remote Repo
$ ssh ALIAS $ mkdir /git/DOMAINNAME && cd /git/DOMAINNAME # Initialized empty Git repository in /var/git/myapp.git $ git init --bare
-
Local Repo
-
Initiate Local Repo
$ cd ~/www/sites/NAME/ $ git init $ git add . $ git commit -m 'initial commit'
-
Add a Remote Origin
$ git remote add origin ssh://ALIAS/PATH/TO/REMOTE/REPO
-
Push Local Repo to Remote
$ git push -u origin master
-
-
Clone Repo
$ ssh alias $ cd ~/public_html/DOMAIN_NAME # Clone Repo $ git clone ~/git/REPO_NAME CLONE_NAME
-
Install Drupal
# Move into the directory where composer.json is located $ cd DOMAIN_NAME # Install $ composer install
-
Site Settings
Copy site settings from local to drupal/web/sites/default/settings.php
scp web/sites/default/settings.php ALIAS:/PATH/TO/SITE/www/web/sites/default/settings.php
- Add Trusted host configuration
- Comment out local development settings
- Add Database Array