Last active
August 21, 2019 08:41
-
-
Save dasbairagya/76e0cc75fbd70a20a487ff901f78ab96 to your computer and use it in GitHub Desktop.
#Drupal project setup with git | virtual host | Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ποΈProject Setup------------- | |
| ποΈ sudo chmod -R 755 /var/www/html/ | |
| ποΈ sudo chown -R $USER:www-data /var/www/html/ | |
| ποΈ navigate to the html folder and create a dirctory(e.g imc) | |
| ποΈ run the clone command via git (e.g. git clone --branch dev-test w3rwonat5hdu2@git.us.platform.sh:w3rwonat5hdu2.git ingrammicrocloud) | |
| ποΈ add settings.local.php to the /web/site/default directory and change the database & credentials | |
| ποΈ create database and upload .sql file from the terminal using source command | |
| ποΈ run composer install command | |
| ποΈ run drush cache rebuild command from /web directory (../vendor/bin/drush cr) | |
| ποΈ git pull origin master [To fetch the master branch]. | |
| Note: ποΈ SSH Key generation:- https://gist.github.com/dasbairagya/1e7373636cc122df422fc9fbfedda525 | |
| ποΈ Virtual Host Creation:- https://gist.github.com/dasbairagya/2005abe5ba14e2d26a1a712a19f38ecd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment