mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
use .embark instead of /tmp
This commit is contained in:
parent
b16c06025b
commit
e96842f9da
@ -4,7 +4,6 @@ let currentSolcVersion = require('../../../package.json').dependencies.solc;
|
||||
const ProcessLauncher = require('../../process/processLauncher');
|
||||
const uuid = require('uuid/v1');
|
||||
let ipc = require('node-ipc')
|
||||
let socketPath = "/tmp/embark.sock"
|
||||
|
||||
class SolcW {
|
||||
|
||||
@ -30,7 +29,7 @@ class SolcW {
|
||||
});
|
||||
}
|
||||
|
||||
ipc.connectTo('embark', socketPath, connecting);
|
||||
ipc.connectTo('embark', fs.dappPath(".embark/embark.ipc"), connecting);
|
||||
|
||||
return;
|
||||
}
|
||||
@ -62,9 +61,9 @@ class SolcW {
|
||||
);
|
||||
}
|
||||
|
||||
ipc.serve(socketPath, _connecting)
|
||||
ipc.serve(fs.dappPath(".embark/embark.ipc"), _connecting)
|
||||
ipc.server.start()
|
||||
this.logger.info(`pid ${process.pid} listening on ${socketPath}`);
|
||||
this.logger.info(`pid ${process.pid} listening on ${fs.dappPath(".embark/embark.ipc")}`);
|
||||
|
||||
this.events.request("version:get:solc", function(solcVersion) {
|
||||
if (solcVersion === currentSolcVersion) {
|
||||
@ -88,7 +87,6 @@ class SolcW {
|
||||
compile(jsonObj, done) {
|
||||
const id = uuid();
|
||||
let a = new Date();
|
||||
console.dir("doing compile");
|
||||
|
||||
if (this.useIpc) {
|
||||
ipc.of['embark'].once('message', function(msg) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user