Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 👉️Create SSH key-------------
- 📌️ cd .ssh/
- 📌️ ssh-keygen
- 📌️ hit enter threesies
- 📌️ to copy the key run cat id_rsa.pub
- 📌️ add the ssh key to the server as public key
- 👉️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)
- 👉️Virtual Host Setup-------------
- 📌️ sudo nano /etc/apache2/sites-available/platform.conf
- 📌️ add the following code-
- <VirtualHost *:80>
- ServerAdmin me@myserver
- DocumentRoot /var/www/html/your_folder_name/ingrammicrocloud/web
- ServerName platform.local
- ServerAlias *.platform.local
- CustomLog /var/log/apache2/ingram.error.log combined
- <Directory /var/www/html/your_folder_name/ingrammicrocloud/web>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride All
- Order allow,deny
- allow from all
- </Directory>
- </VirtualHost>
- 📌️ sudo a2ensite platform
- 📌️ sudo nano /etc/hosts
- 📌️ add the bellow code-
- 127.0.0.1 platform.local
- 📌️ sudo service apache2 restart
- 👉️Access the project-------------
- 📌️ go to url and type platform.local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement