These are chat archives for apparatus/fuge

25th
Feb 2016
Per Ejeklint
@ejeklint
Feb 25 2016 16:31
Newbie here, I’m thinking of simplifying my project structure abit, basically moving hapi server out of site/api. Is it enough to change the Dockerfile for the project or does fuge look for paths elsewhere?
Adrian Rossouw
@AdrianRossouw
Feb 25 2016 18:27
change the docker-compose file
@ejeklint so i just put a change in the master branch that splits the site into /api and /site folders
one of which is just the rest api , and the other is just the statics
Per Ejeklint
@ejeklint
Feb 25 2016 18:28
Ah ok :)
BTW Fuge is awesome.
Adrian Rossouw
@AdrianRossouw
Feb 25 2016 18:29
thanks =)
it’s going to get a lot better =P
Per Ejeklint
@ejeklint
Feb 25 2016 18:30
Sounds great!
I just got a new app running with all dependencies updated (latest hapi, Seneca etc) and using websockets between client and server instead of ol’ style http. Works really nice.
Adrian Rossouw
@AdrianRossouw
Feb 25 2016 18:31
to use the master branch,do
git checkout ….
cd fuge
npm link
(you should npm uninstall fuge first
Per Ejeklint
@ejeklint
Feb 25 2016 18:33
I think I’ll stick to current version right now, must focus on other things that the tool suite. :)
One thing though, I haven’t figured out how to configure fuge so it builds site differently. I need to run browserify before starting the server, but I didn’t understand how to change fuge-config.js to do that. In overrides I suspect, but...
Peter Elger
@pelger
Feb 25 2016 19:55
Yes in overrides - we need to improve the docs in this area, however in the meantime here is an example config:
module.exports = {
runDocker: false,
proxy: 'all',
tail: true,
monitor: true,
exclude: /node_modules|.git|.log/mgi,
overrides: {
site: {
run: 'node dev.js',
monitor: {
exclude: /static/
}
}
}
};
this will execute 'node dev.js' in the site folder
overriding anything in the Dockerfile
@brainling - we are working on the debugging support right now and will have something awesome soon: check out: https://github.com/apparatus/terminal-devtools - this is early stage but developing rapidly - would be awesome if you could give it a spin
Peter Elger
@pelger
Feb 25 2016 20:00
@JeffryGonzalez thanks for the love - please do raise an issue and we'll check it out
Per Ejeklint
@ejeklint
Feb 25 2016 20:08
@pelger thanks!
Jeffry Gonzalez
@JeffryGonzalez
Feb 25 2016 20:56
@pelger I wasn't able to reproduce. I tried it again a couple of times, and got a package.json each time. I used the yo fuge:static (I think that was it) as well, and it worked just fine. Thanks.
Adrian Rossouw
@AdrianRossouw
Feb 25 2016 20:59
@JeffryGonzalez that generator is new in the master branch
no released version has it yet
i added it yesterday