Skip to content

Proposal for new build process #2

Open

Description

@remy

Brain dump of ideas

  • webhook looks out for new tags
  • new tag = git pull
  • git clone jsbinrepo into /WWW/deploy (at specific tag)
  • runs npm install to update any package.json changes
  • run grunt build
  • if all exits okay then...
  • renames /WWW/jsbin to /WWW/jsbin-old
  • renames /WWW/deploy to /WWW/jsbin
  • restarts jsbin service
  • restart email gets a subject (that can also be defined by the user via the cli)

Note that sudo may be required for some/all of this.

Should email/IRC a report back.

Activity

  1. dannyhope commented on Jul 30, 2014

    @dannyhope
    Member

    A bell should ring out across the land

  2. remy commented on Jul 30, 2014

    @remy
    MemberAuthor

    Update on process.

    Instead of renaming the directories:

    • git clone <repo> jsbin-<tag>
    • ::run build process::
    • update a symlink called jsbin to point to the newly cloned repo

    The result, a faster deploy to production process and the resulting ls shows:

    jsbin-3.17.3/
    jsbin-3.17.2/
    jsbin -> jsbin-3.17.3
    
  3. remy commented on Aug 4, 2014

    @remy
    MemberAuthor

    Extra requests:

    1. Automatically compare package deps against previous version, and copies across if they're the same (or maybe copied across anyway, then does npm install ... but this might cause permission issues if we run manually)
    2. deploy latest works out the latest tag and does the rest.
  4. remy commented on Aug 5, 2014

    @remy
    MemberAuthor

    2nd version of deploy script: https://github.com/jsbin/production/blob/master/usr/local/bin/deploy now in use in production.

    Features to add:

    • Automatic tag webhook -> deploy
    • Restart jsbin
    • Management of old folders
    • Tweet with version and compare url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions