Deployment (moved): Difference between revisions
Content added Content deleted
imported>Paulproteus (Created page with '{{Hacking OpenHatch}} This is a quick-and-dirty page explaining how to deploy new versions of the OpenHatch code. == Prerequisites == * You must be part of the Login team …') |
imported>Paulproteus No edit summary |
||
Line 9: | Line 9: | ||
* Deploying takes about 3 minutes, maybe less if things go well. |
* Deploying takes about 3 minutes, maybe less if things go well. |
||
== |
== How the deploy script works == |
||
You need to have these programs installed: '''ssh''', '''git'''. |
|||
The script does two things: |
|||
* Push your current git HEAD onto origin/master. |
|||
* SSH to the linode, and runs mysite/scripts/deploy_myself.sh which updates the site. |
|||
== Recommended way to use the deploy script == |
|||
* Make sure .git/config says that the ''url'' for ''origin'' is: |
* Make sure .git/config says that the ''url'' for ''origin'' is: |
||
Line 22: | Line 30: | ||
./scripts/deploy |
./scripts/deploy |
||
* Sometimes the deploy script takes two attempts for no good reason. |
|||
* It's really important to make the separate branch so that you don't accidentally push random local work into the live site. |
* It's really important to make the separate branch so that you don't accidentally push random local work into the live site. |