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

Allow to run multiple styleguide servers on different ports #1019

Closed
juliami opened this issue Oct 31, 2016 · 2 comments
Closed

Allow to run multiple styleguide servers on different ports #1019

juliami opened this issue Oct 31, 2016 · 2 comments

Comments

@juliami
Copy link

juliami commented Oct 31, 2016

Hi,

Is it possible to run multiple instances of sc5-styleguide on different ports?
I'm trying to generate 2 styleguides from one gulpfile (for two different themes in the app). So I registered 2 tasks:

gulp.task('styleguide:generateCore', function() {
  return gulp.src(scssCore)
     .pipe(styleguide.generate({
      server: true,      
      port: 4001,
     ...
    }))
    .pipe(gulp.dest(outputPathCore));
});

gulp.task('styleguide:generateChild', function() {
  return gulp.src(scssChild)
     .pipe(styleguide.generate({
      server: true,      
      port: 4002,
     ...
    }))
    .pipe(gulp.dest(outputPathChild));
});

They both work when called separately however when I use them both, I get

Express server listening on port 4002

only and nothing is generated on port 4001.

Is there a way to have two instances running concurrently?

varya added a commit to varya/sc5-styleguide that referenced this issue Nov 2, 2016
@varya varya changed the title Multiple styleguides with Gulp Allow to run multiple styleguide servers on different ports Nov 2, 2016
@varya
Copy link
Contributor

varya commented Nov 2, 2016

Hi. There was no such feature. I've made a PR here #1021. Please wait a little bit for it to be merged, and for the upcoming version update.

@varya varya closed this as completed Nov 2, 2016
junaidrsd pushed a commit that referenced this issue Nov 2, 2016
…servers

Allow to run multiple styleguide servers on different ports. Fix #1019
@juliami
Copy link
Author

juliami commented Nov 3, 2016

Awesome, thank you.

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

No branches or pull requests

2 participants