igorklopov / enclose

Compile your Node.js project into an executable
http://enclosejs.com
Other
936 stars 43 forks source link

Sail project does not run when it has models #26

Closed MickCrozier closed 9 years ago

MickCrozier commented 9 years ago

Awesome project - just what i've been looking for!

Example 26 compiles ok - until you add a model to the project!

error: Trying to use unknown adapter, "sails-disk", in model `testmodel`.
error: Are you sure that adapter is installed in this Sails app?
error: If you wrote a custom adapter with identity="sails-disk", it should be in this app's adapters directory.
error: Otherwise, if you're trying to use an adapter named `sails-disk`, please run `npm install sails-disk@0.11.x`

Repro: Start with example 26-sails npm install to get dependencies add testmodel.js to api/model/

// testmodel.js
module.exports = {
    connection: 'localDiskDb',

    attributes: {
        myAtt: {
            type: 'string',
        }, 
    }
};

Compile and run

igorklopov commented 9 years ago

I fixed it in 0.2.28. Please upgrade and try again.