简体   繁体   中英

Website deployed on AWS EC2 is different than Local version

I have deployed an Angular website using an AWS EC2 Ubuntu free Tier and I made some updates to the local version and pushed the changes to Github. I SSH into the instance on my machine and pull the updates. When I check the code on the EC2 instance the changes are reflected in the code but are not showing up in the live website.

After I pulled the changes I:

pm2 kill

pm2 start server.js

sudo service nginx stop && sudo service nginx start

I then decided to delete the repo and re-clone it into the EC2 instance and the changes still aren't there. I also cloned the repo to my machine re-installed everything just to verify the changes are on Github and they are.

What might be going on here?

旧的 mapping.js 仍然存在,我不得不做一个 NG Build 来替换旧的映射并将更改推送到 Github。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM