mirror of https://github.com/calzoneman/sync.git
Use path.join(__dirname, ...) to potentially avoid www/js/player.js issue
This commit is contained in:
parent
c1e78fd4dc
commit
ef7bf1a319
|
@ -30,7 +30,12 @@ var order = [
|
|||
|
||||
var buffer = '';
|
||||
order.forEach(function (file) {
|
||||
buffer += fs.readFileSync(path.join('player', file)) + '\n';
|
||||
buffer += fs.readFileSync(
|
||||
path.join(__dirname, '..', 'player', file)
|
||||
) + '\n';
|
||||
});
|
||||
|
||||
fs.writeFileSync(path.join('www', 'js', 'player.js'), coffee.compile(buffer));
|
||||
fs.writeFileSync(
|
||||
path.join(__dirname, '..', 'www', 'js', 'player.js'),
|
||||
coffee.compile(buffer)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue