Reputation: 3674
I have setup AWS Code Deploy with my github project. Deployment works without fail. When I login to EC2 instance, I see my project folder and all the files, but don't see the project as a git repository.
I can run git init
and it will be git repo, but when I push the latest commit for the second time using code deploy, I will not have the recent git commit history.
Is there a way this can be done?
Upvotes: 0
Views: 440
Reputation: 13642
CodeDeploy will only deploy the files, not the entire GIT repository itself.
This is intentional. You would not normally want the repository itself on a server, you would only want the files.
Code development, commits, etc are done on a different server, not on the server you deploy to.
Upvotes: 2