User Tools

Site Tools


wiki:devworkflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:devworkflow [2021/07/30 02:49] guidebeaconwiki:devworkflow [2021/09/14 23:15] (current) guidebeacon
Line 13: Line 13:
 Since the database is synced from prod to dev, work must be performed with this in mind. Since the database is synced from prod to dev, work must be performed with this in mind.
  
-code is to be modified, then when the code is in a state that you are ready to publish, commit work to the local dev repo, then push from dev to prod+Static assets and generated content are not tracked in git, or pushed from dev to prod. This is taken into account in ''beaconsync.sh'' and ''beaconpublish.sh'' 
 + 
 +Code is to be modified, then when the code is in a state that you are ready to publish, commit work to the local dev repo, then run the ''beaconpublish.sh'' script with ''sudo''. The script will manage everything.
  
 ===== Making Changes ===== ===== Making Changes =====
  
-To make changes, ssh to username@dev.beacontechnology.com+To make changes, ssh to ''username@dev.beacontechnology.com''
  
-You should be automatically logged in as masterbeacon user.+You should be automatically logged in as ''masterbeacon'' user.
  
 The website files are located at ''/home/masterbeacon/public_html'' The website files are located at ''/home/masterbeacon/public_html''
  
-Modify the files to your liking with your preferred editor.+Change the files as needed.
  
 When done and ready to publish, stage and commit all changes using ''git commit -a'' When done and ready to publish, stage and commit all changes using ''git commit -a''
Line 33: Line 35:
 To publish changes, just run ''sudo /root/scripts/beaconpublish.sh'' To publish changes, just run ''sudo /root/scripts/beaconpublish.sh''
  
-That script will push master to origin.+That script will do everything necessary to move changes from dev to prod. This involves invoking rsync and moving the files.
  
 Then it runs necessary commands on prod to get the files exposed for public_html Then it runs necessary commands on prod to get the files exposed for public_html
Line 39: Line 41:
 ===== Syncing Database and Files ===== ===== Syncing Database and Files =====
  
-The database and static files are copied from prod to dev on a daily basis between 3AM and 4AM.+The database and static files are copied from prod to dev on a daily basis between 3AM and 4AM. The script also has some basic logic to manage having a set up backups of the database.
  
 To make the script run early, just run the command: ''sudo /root/scripts/beaconsync.sh'' To make the script run early, just run the command: ''sudo /root/scripts/beaconsync.sh''
wiki/devworkflow.1627613353.txt.gz · Last modified: 2021/07/30 02:49 by guidebeacon

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki