Skip to content

Instantly share code, notes, and snippets.

@dasbairagya
Last active August 21, 2019 08:41
Show Gist options
  • Select an option

  • Save dasbairagya/76e0cc75fbd70a20a487ff901f78ab96 to your computer and use it in GitHub Desktop.

Select an option

Save dasbairagya/76e0cc75fbd70a20a487ff901f78ab96 to your computer and use it in GitHub Desktop.
#Drupal project setup with git | virtual host | Ubuntu
πŸ‘‰οΈ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