You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed, we don't have access to SWD on our local networks. This calls for a need in having auto-updation of code on the server and restarting it, whenever there is a new commit in production branch. There are various ways to go about this:
Using Webhooks: Using github webhooks, we can start a script on the server whenever there is a commit in the production branch. There is a bit of difficulty in implementing this, as webhooks require a public-facing domain. We can request CC to provide us a domain say swd1.bits-goa.ac.in(not sure how long the process for this will be). A workaround can be to use ngrok for creating a tunnel.
Run a cron job, which checks every hour, whether there is a code update (using git fetch). But this will be a slow update.
As @adiasg suggested, create a hashed url, which if hit runs a script to pull the code. This seems to be the best way to do as of now.
Please comment with your suggestions.
The text was updated successfully, but these errors were encountered:
@mehulmpt do you. want to take this up? Currently we don't have way to do it. But this is required as we go forward. Also we will need to put production and debug variables at the right places.
As discussed, we don't have access to SWD on our local networks. This calls for a need in having auto-updation of code on the server and restarting it, whenever there is a new commit in
production
branch. There are various ways to go about this:Using Webhooks: Using github webhooks, we can start a script on the server whenever there is a commit in the production branch. There is a bit of difficulty in implementing this, as webhooks require a public-facing domain. We can request CC to provide us a domain say
swd1.bits-goa.ac.in
(not sure how long the process for this will be). A workaround can be to use ngrok for creating a tunnel.Run a cron job, which checks every hour, whether there is a code update (using git fetch). But this will be a slow update.
As @adiasg suggested, create a hashed url, which if hit runs a script to pull the code. This seems to be the best way to do as of now.
Please comment with your suggestions.
The text was updated successfully, but these errors were encountered: