Advertisement
Guest User

Untitled

a guest
May 20th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. 👉️Create SSH key-------------
  2. 📌️ cd .ssh/
  3. 📌️ ssh-keygen
  4. 📌️ hit enter threesies
  5. 📌️ to copy the key run cat id_rsa.pub
  6. 📌️ add the ssh key to the server as public key
  7.  
  8. 👉️Project Setup-------------
  9. 📌️ sudo chmod -R 755 /var/www/html/
  10. 📌️ sudo chown -R $USER:www-data /var/www/html/
  11. 📌️ navigate to the html folder and create a dirctory(e.g imc)
  12. 📌️ run the clone command via git (e.g. git clone --branch dev-test w3rwonat5hdu2@git.us.platform.sh:w3rwonat5hdu2.git ingrammicrocloud)
  13. 📌️ add settings.local.php to the /web/site/default directory and change the database & credentials
  14. 📌️ create database and upload .sql file from the terminal using source command
  15. 📌️ run composer install command
  16. 📌️ run drush cache rebuild command from /web directory (../vendor/bin/drush cr)
  17.  
  18. 👉️Virtual Host Setup-------------
  19. 📌️ sudo nano /etc/apache2/sites-available/platform.conf
  20. 📌️ add the following code-
  21. <VirtualHost *:80>
  22. ServerAdmin me@myserver
  23. DocumentRoot /var/www/html/your_folder_name/ingrammicrocloud/web
  24. ServerName platform.local
  25. ServerAlias *.platform.local
  26. CustomLog /var/log/apache2/ingram.error.log combined
  27. <Directory /var/www/html/your_folder_name/ingrammicrocloud/web>
  28. Options Indexes FollowSymLinks MultiViews
  29. AllowOverride All
  30. Order allow,deny
  31. allow from all
  32. </Directory>
  33. </VirtualHost>
  34. 📌️ sudo a2ensite platform
  35. 📌️ sudo nano /etc/hosts
  36. 📌️ add the bellow code-
  37. 127.0.0.1 platform.local
  38. 📌️ sudo service apache2 restart
  39.  
  40. 👉️Access the project-------------
  41. 📌️ go to url and type platform.local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement