Deploy Updates
Introduction
In the previous activity, you created a web service on Render.com, and deployed your application, from GitHub. Hopefully, everything worked without any issues. But, what do you do when you make changes to your code? That's what we'll discuss in this activity.
Video Demonstration
The video provides a general overview of the activity, but does not contain the detail needed to complete each process. Watch the video to obtain a general idea, but follow the written steps to complete the activity. This is the Transcript of the video.
Manual Deployment
When you created the web service you changed the setting for "Auto-Deploy" to "No". This means that when you create new features and sync them to your GitHub repository you are in charge of when these changes are deployed - "added to" - your render.com server. This put you firmly in charge of what code is placed into production. But, it also makes you responsible for making such changes. Let's go through the generic process:
- Add whatever changes you will make to the code in VSC.
- When ready, sync the changes from your local computer to your remote GitHub repository.
- To deploy (make your code live on the Internet), open Render.com in your browser and sign-in using your GitHub credentials.
-
In the dashboard, click your web service.
- In the "Web Service" view, there is a "Manual Deploy" button in the top-right corner.
-
Click the button and select "Clear build cache & deploy".
- The Logs window will appear and show you what steps are occurring. In the middle of the screen you will see the date and time. To the right will be an indicator which will read "In progress". When done, this will change to "Failed" or "Live".
- The "Live" option should have a green background, meaning "Success".
- As you have done previously, click the link below the service name to open to your application in a new tab.
Test, Test, Test
Thoroughly test the application to make sure everything works as it should. If any errors are found, go back to the code and troubleshoot. Make sure things are fixed and fully operational. Don't wait! Do it immediately.
Conclusion
The manual deployment is pretty easy. Just follow this simple process as described. But be sure to test everything, following the deployment. Nothing will ruin your reputation faster than not testing and having clients find the errors!