Update My Fork / Troubleshooting Part 2

3 Sep
Guides > Setup Guides > How to Update to Latest CGM-REMOTE-MONITOR Web Site > Update My Fork / Troubleshooting Part 2

If you used the “update” link to update your Github repository, but your site is not showing the current version, please review the following steps for either your Heroku or Azure site:

Heroku – Simple Redeploy

If you are a Heroku user, you may need to manually redeploy your repository. To do this:

  1. Log in at Heroku.
  2. Open your site app and click the Deploy tab (from the top menu).
  3. If your site was initially deployed properly, you should see your Github user name on the deployment page, showing you are “connected” to your Github.
  4. If you are connected to your GitHub, scroll to the bottom where the “Manual deploy” area is.
  5. “Master” should be shown in the box. (If not, use the drop-down list to select “Master.”)
  6. Click the “deploy now” button next to it.

  7. It may take a few minutes for the site to redeploy. When it is finished, return to your site and refresh to see if the site has updated to the new version.

Azure – Try a Simple Redeploy

If your Azure site does not appear to have updated, you can first try redeploying the site following these simple steps:

  1. Click the ‘deployments’ tab at the top in Azure,
  2. Click the arrow to the right edge of the deployment shown at the top of the deployments page.
  3. At the bottom of the deployments page (after you click the arrow), a ‘redeploy’ button will appear, (Note: you may see a ‘sync’ button instead or, if the original deployment failed, a ‘retry’ button. If you see ‘retry,’ use that option.)
  4. Click the redeploy button (or sync, if that is the only option),
  5. Wait about 5 minutes, and then REFRESH your site in a browser and check the version of the site,

If your site still does not show the updated version, you may need to move on to the steps below.

Azure – Disconnect and Re-deploy Web Site Code

1. Log into Azure at https://manage.windowsazure.com

2. Click on ‘Web Sites’ on the left navigation bar

 azure 2 websites

3. Click on your web site

azure 3

4. Click on Dashboard if you aren’t already on that page.

azure 4

5. Locate the ‘Quick Glance’ menu on the right side of the dashboard, and click on ‘Disconnect from GitHub’. If you see ‘Set up deployment from source control’ then proceed to Step #8.

azure 5

 6. Click ‘Yes’ to agree to the disconnect.

azure 6

 7. It will show ‘Operation is currently running’ and wait for that to complete.

azure 7

 8. Back under the ‘Quick Glance’ menu, now click on ‘Set up deployment from source control’

azure 8

9. On the ‘Where is your source code?’ prompt, select GitHub and click on the arrow on bottom right.

azure 9

 10. Since you were just logged into GitHub, the connection / authorization connection should occur without any GitHub credential prompt, but if you are prompted, provide the necessary credentials (username & password) to connect.

In the ‘Choose a repository to deploy’, select the ‘cgm-remote-monitor’ from the REPOSITORY NAME drop down.

 azure 10

11. After selecting, the BRANCH TO DEPLOY should be ‘master’ and then click on the arrow to proceed.

 azure 11

12. Your GitHub repository will now be linked, and the deployment will begin.

azure 12z

azure 12b

13. When it’s done deploying, it will turn to a green ‘ACTIVE DEPLOYMENT’

azure 13

14. Next we want to make sure your Connection Strings are still present in the configuration. From the top navigation menu, click on ‘CONFIGURE’

azure 14

15. Scroll down the Configure page, and look for the ‘Connection Strings’ section. Click on ‘Show Connection Strings’

azure 15

16. Verify that your connection strings still exist, and that they are correct. They shouldn’t have changed, but if they are not present, you will need to reenter them.

azure 16

17. Proceed to your website and test that it appears.

18. On the top right of the screen, click on the Settings icon (three horizontal lines) and verify in the about section that you see version 0.9.x (‘x’ will be the latest revision, if applicable, e.g., 0.8.5)

Return to How to Update to Latest CGM-REMOTE-MONITOR Web Site