我正在构建一个VueJS应用,我想将其部署在AWS EC2实例上。我已经创建了实例,并按照以下说明成功安装了LAMP Stack:
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html
I have a git repository and I want to pull the repository to the instance.
I have cloned the repository to the www/html
folder and ran npm install
and npm run build
command. I tried to access the link: www.example.com/app/dist
but I can not bring the project live. Do I need additional server to run the VueJS app? What should I do? I found a solution on YouTube, but it was on nginx, but I think I am using Apache server as I installed LAMP Stack.
Can anyone give me a solution or a tutorial to follow?