Closed cgiansante closed 3 years ago
This is a great resource, thanks for sharing @cgiansante! I'm going to re-open it and leave it open for a week so there's a better chance more students will have the opportunity to see it. 👍
This is very helpful instructions to set up Laravel on EC2. It helped me a lot.
Below is some information for configuring a Amazon Linux EC2 instance for use with Laravel and github.
I am hoping to use this approach for project three. All thoughts, pointers and advice is welcome.
These details helped me and assume you are familiar with AWS EC2 (SSH & CLI), Security Groups, and costs (everything used is free tier eligible). Please proceed at your own risk.
Create EC2 instance with the following details
Amazon Linux 2 AMI, t2 micro using below user data:
If any commands failed from the user data on instance provisioning,
Install composer
Connect to github
Update mod_rewrite
Update DNS records
Production Domains
Comfirm git & Clone e15
Deploy to Digital Ocean
For Each App
Install Composer
App storage permissions
Create ev file
Move to app location and generate key
Edit Env variables
Update virtual hosts
Check your ec2 user file permissions for the web root and app folders with the AWS LAMP guide below.
Resources
AWS LAMP AWS Instance creation AWS mod rewrite