Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #172 from tysongach/master
Browse files Browse the repository at this point in the history
Add Middleman detector
  • Loading branch information
swyxio authored May 7, 2019
2 parents 5efd73a + 340a442 commit 47ed3e6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/detectors/middleman.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const { existsSync } = require("fs");

module.exports = function() {
if (!hasRequiredFiles(["config.rb"])) return false;

return {
type: "middleman",
port: 8888,
proxyPort: 4567,
env: { ...process.env },
command: "bundle",
possibleArgsArrs: [["exec", "middleman", "server"]],
urlRegexp: new RegExp(`(http://)([^:]+:)${4567}(/)?`, "g"),
dist: "build"
};
};

0 comments on commit 47ed3e6

Please sign in to comment.