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

Commit

Permalink
fix exporting in the os x app while maintaining compatibility with th…
Browse files Browse the repository at this point in the history
…e ubuntu node ppa
  • Loading branch information
kkaefer committed Aug 4, 2011
1 parent 856f3e6 commit 220470d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env node
process.title = 'tilemill';

// This is necessary to make optimist not special-case into coffeescript as
// certain node installs (e.g. ubuntu node ppa) do not use `node` as the binary
// name.
process.argv[0] = 'node';

require('tilelive-mapnik').registerProtocols(require('tilelive'));
require('mbtiles').registerProtocols(require('tilelive'));

Expand Down
5 changes: 1 addition & 4 deletions models/Exports.server.bones
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ var start = function(model, data, callback) {
// nice the export process.
args.push('-n19');
// node command
// @TODO note that process.execPath is not used here as certain
// installs (e.g. ubuntu node ppa) do not use `node` as the binary
// name causing optimist arg parsing to fail.
args.push('node');
args.push(process.execPath);
// tilemill index.js
args.push(path.resolve(path.join(__dirname + '/../index.js')));
// export command
Expand Down

0 comments on commit 220470d

Please sign in to comment.