Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for new build process #2

Open
remy opened this issue Jul 29, 2014 · 4 comments
Open

Proposal for new build process #2

remy opened this issue Jul 29, 2014 · 4 comments
Assignees

Comments

@remy
Copy link
Member

remy commented Jul 29, 2014

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.

@dannyhope
Copy link
Member

A bell should ring out across the land

@remy
Copy link
Member Author

remy commented Jul 30, 2014

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

@remy
Copy link
Member Author

remy commented Aug 4, 2014

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.

@remy
Copy link
Member Author

remy commented Aug 5, 2014

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
Projects
None yet
Development

No branches or pull requests

3 participants