Background: I am using lineman as part of a Scala Playframework application that I am writing. As such, I have the following questions
-
I have deleted the homepage template since the HTML is going to be served from the Play application. When I run
lineman run
andlineman build
, I get the following error:Running "homepage:dev" (homepage) task Unable to read "app/templates/homepage.us" file (Error code: ENOENT). Use --force to continue.
I have tried to use config/application.js to override the application.js settings in the module. See application.js below.
- I need to put all of the application files from 'generated' and 'dist' directories into a directory outside of the directory that was created by
lineman new
so that Play will pick up changes (long story). Is that possible? I thought I could do it by finding all instances of 'generated' and 'dist' in the files.js and application.js files and replace that with '../../someDir' but that didn't seem to work.
Other than that, Lineman seems to be a great tool for bootstrapping Grunt projects. Thanks for all of the hard work.
Hi, I have no idea how to configure server.js for handling post method used by $resource.save. I want to add new entry to this json:
app.get('/books', function (req, res) { res.json([ {id: 1, title: 'Great Expectations', isbn: '9807876322', author: 'Dickens', kind: 'Fantasy, Horror', borrowed: false, borrower: '', pageQuantity: 267}, {id: 2, title: 'Foundation Series', isbn: '9007836572', author: 'Asimov', kind: 'Adventure, Fantasy, Historical', borrowed: false, borrower: '', pageQuantity: 566}, {id: 3, title: 'Treasure Island', isbn: '9851415668', author: 'Stephenson', kind: 'Fantasy', borrowed: true, borrower: '', pageQuantity: 211}, {id: 4, title: 'Last Adventures of Captain Dog', isbn: '887452214', author: 'Blind', kind: 'Adventure, Historical', borrowed: false, borrower: '', pageQuantity: 667}, ]); });
Help needed!