Step 3: Upload a sample application to your GitHub repository (original) (raw)

In this step, you will copy a sample revision from a public Amazon S3 bucket to your GitHub repository. (For simplicity, the sample revisions provided for this tutorial are single web pages.)

Topics

Push a sample revision from a local Linux, macOS, or Unix machine

With your terminal still open in, for example, the/tmp/CodeDeployGitHubDemo location, run the following commands one at a time:

Note

If you plan to deploy to a Windows Server instance, substituteSampleApp_Windows.zip for SampleApp_Linux.zip in the commands.

(Amazon S3 copy command)
unzip SampleApp_Linux.zip
rm SampleApp_Linux.zip
git add .
git commit -m "Added sample app"
git push

Where (Amazon S3 copy command) is one of the following:

Push a sample revision from a local Windows machine

With your command prompt still open in, for example, thec:\temp\CodeDeployGitHubDemo location , run the following commands one at a time:

Note

If you plan to deploy to an Amazon Linux or RHEL instance, substituteSampleApp_Linux.zip for SampleApp_Windows.zip in the commands.

(Amazon S3 copy command)

Unzip the contents of the the ZIP file directly into the local directory (for example c:\temp\CodeDeployGitHubDemo), not into a new subdirectory.

git add .
git commit -m "Added sample app"
git push

Where (Amazon S3 copy command) is one of the following:

To push your own revision to an Ubuntu Server instance, copy your revision into your local repo, and then call the following:

git add .
git commit -m "Added Ubuntu app"
git push