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

Make updating regexps.js more atomic to prevent server crashes #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dattas
Copy link

@dattas dattas commented Sep 13, 2016

Occasionally the auto update fails while writing to the regexps.js file, leaving a blank file and causing node to fail and prevents starting of the application. This change writes the changes to a temporary file first and if there are no issues, then it renames it. This makes the process more atomic and has improved reliability on our servers.

@dattas
Copy link
Author

dattas commented Sep 13, 2016

Looks like the build failed due to npm issues, closing and re-opening to have it try again.

@dattas dattas closed this Sep 13, 2016
@dattas dattas reopened this Sep 13, 2016
@dattas
Copy link
Author

dattas commented Sep 13, 2016

Looks like the should package is having trouble on NPM for node 0.8 which is causing this to fail. I can close/open again later, perhaps tomorrow to see if the issue goes away

@dattas dattas closed this Sep 24, 2016
@dattas dattas reopened this Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant