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

feat(core): Ensure that Ghost was started #612

Merged
merged 4 commits into from Feb 4, 2018

Conversation

kirrg001
Copy link
Contributor

@kirrg001 kirrg001 commented Feb 3, 2018

closes #472

  • added port polling utility
  • general process manager class offers ensureStarted function
  • systemd extension makes use of ensureStarted

instance.process.error(message.error);
// Ghost error log happens AFTER this event
// REMOVE WHEN ghost is released and we bump the cli engine?
setTimeout(() => {

This comment was marked as abuse.

This comment was marked as abuse.

};

return this.ui.run(start, 'Starting Ghost', runOptions).then(() => {
// @TODO: shouldn't this happen before start?

This comment was marked as abuse.

const ProcessManager = require('../../lib/process-manager');

describe('Unit: Process Manager', function () {
let sandbox;

This comment was marked as abuse.

@kirrg001 kirrg001 force-pushed the ipc-lol branch 2 times, most recently from 079b2a5 to 1ed5c93 Compare February 4, 2018 11:19
@coveralls
Copy link

coveralls commented Feb 4, 2018

Coverage Status

Coverage decreased (-0.5%) to 98.228% when pulling 36f6340 on kirrg001:ipc-lol into 0075e77 on TryGhost:master.

closes TryGhost#472

- added port polling utility
- general process manager class offers `ensureStarted` function
- systemd extension makes use of `ensureStarted`
@kirrg001 kirrg001 changed the title [WIP] feat(core): Ensure that Ghost was started feat(core): Ensure that Ghost was started Feb 4, 2018
Copy link
Member

@acburdine acburdine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks fine other than a couple of small things.

* @returns {Promise<any>}
*/
ensureStarted(options) {
options = merge({

This comment was marked as abuse.

This comment was marked as abuse.

const errors = require('../errors');

module.exports = function portPolling(options) {
options = merge({

This comment was marked as abuse.

*
* @returns {Promise<any>}
*/
ensureStarted(options) {

This comment was marked as abuse.

This comment was marked as abuse.

@acburdine
Copy link
Member

tested this and it works 👍 just need the above changes fixed and this is good to go.

@kirrg001
Copy link
Contributor Author

kirrg001 commented Feb 4, 2018

@acburdine cool 👍 will push your suggestions

@kirrg001
Copy link
Contributor Author

kirrg001 commented Feb 4, 2018

Pushed 2 commits 👍

Copy link
Member

@acburdine acburdine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@acburdine acburdine merged commit 8c68889 into TryGhost:master Feb 4, 2018
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.

Implement better ipc communication to ghost run process
3 participants