Opened 17 years ago

Closed 17 years ago

#13079 closed enhancement (fixed)

webpush script

Reported by: jmpalacios (Juan Manuel Palacios) Owned by: wsiegrist@…
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: webpush Cc: macports-mgr@…
Port:

Description (last modified by jmpalacios (Juan Manuel Palacios))

A "webpush" script is needed to keep the contents of our svn's trunk/www dir always in sync with our "home" in Mac OS Forge's web server. I can easily write it using tools such as rsync (mimicking the existing trunk/base/portmgr/jobs/mprsyncup script), but I need to know two things in order to turn it into a functional script:

  1. The paths from where I'll be pulling data out of svn and where I should push it:
    • the mprsyncup script uses an svn checkout that goes into the /var/tmp/macports path of some Mac OS Forge server to operate; given that we need to host about four services that operate off svn checkouts, maybe we should look into some way of unifying them if possible. If we can't use the same server+path as mprsyncup for whatever reason, I would need to know where to place the appropriate checkout for "webpush" to operate (akin to mprsyncup's SVNROOT variable).
    • Once trunk/www is checked out, we need to sync its contents with our home within the web server's DocumentRoot directory. I need to know the appropriate server+path of that "home" to also know what tool to use (rsync, rsync over ssh, tar, whatever).
  2. Refresh interval of the "web home" also needs to be sorted out. Do we update after every commit to trunk/www as an svn post-commit hook? Or do we do it at regular intervals off cron/launchd, like every 24 hours? (the latter seems like a bit of a waste to me, as we don't anticipate those many commits to trunk/www once content there stabilizes). In either case, uploading the relevant svn hook files / launchd plist file to the svn trunk/base/portmgr/jobs directory would be awesome, for organizational reasons.

-jmpp

Change History (2)

comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Description: modified (diff)

comment:2 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Resolution: fixed
Status: newclosed

The live update of our website was taken care of as a post-commit hook but in an different fashion from what I described here. In any case, this ticket can be regarded as resolved, closing.

-jmpp

Note: See TracTickets for help on using tickets.