Sha256: 11b807abfae9723035cff6718fa2989fdf5562d4e5b5a356999fb3321c324f8e

Contents?: true

Size: 725 Bytes

Versions: 8

Compression:

Stored size: 725 Bytes

Contents

#include "Server.h"
#include <QtGui>
#include <iostream>
#ifdef Q_OS_UNIX
  #include <unistd.h>
#endif

int main(int argc, char **argv) {
#ifdef Q_OS_UNIX
  if (setpgid(0, 0) < 0) {
    std::cerr << "Unable to set new process group." << std::endl;
    return 1;
  }
#endif

  QApplication app(argc, argv);
  app.setApplicationName("capybara-webkit");
  app.setOrganizationName("thoughtbot, inc");
  app.setOrganizationDomain("thoughtbot.com");

  Server server(0);

  if (server.start()) {
    std::cout << "Capybara-webkit server started, listening on port: " << server.server_port() << std::endl;
    return app.exec();
  } else {
    std::cerr << "Couldn't start capybara-webkit server" << std::endl;
    return 1;
  }
}

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
capybara-webkit-0.13.2 src/main.cpp
capybara-webkit-0.13.1 src/main.cpp
capybara-webkit-0.14.2 src/main.cpp
capybara-webkit-0.14.1 src/main.cpp
capybara-webkit-0.14.0 src/main.cpp
capybara-webkit-0.13.0 src/main.cpp
otherinbox-capybara-webkit-0.12.0.1 src/main.cpp
otherinbox-capybara-webkit-0.12.0 src/main.cpp