perak / kitchen-examples

Meteor Kitchen examples
164 stars 115 forks source link

application is crashing #25

Closed flenoir closed 9 years ago

flenoir commented 9 years ago

hi,

i tried to launch the app and i get tis error

=> Errors prevented startup:

While processing files with less (for target web.browser): client/styles/styles/styles.less:1: Unknown import: {}/client/styles/framework/bootstrap3/custom.bootstrap.less

=> Exited with code: 8 => Your application is crashing. Waiting for file change.

any idea ?

regards

Fabien Lenoir

perak commented 9 years ago

@flenoir Start app again and it will work. This is because file /client/styles/framework/bootstrap3/custom.bootstrap.less is auto-generated by nemo64:bootstrap package on first run, but file is generated after meteor detects that included file doesn't exists.

flenoir commented 9 years ago

ok so i started again only with a json file

here's the error

Creating collection "files"... Creating collection "gallery"... Creating stylesheet... Creating layout... Creating zone "free_zone"... Creating component "main_menu"... Creating page "home"... Creating component "gallery"...

File not found "/Users/flenoir/Sites/frooster/files/gallery.html".

i do not understand ?

do i need to copy the "files" folder and the 2 gallery files ?

perak commented 9 years ago

Path to custom template files (it's your "gallery.html" and "gallery.js") file is relative to json.

perak commented 9 years ago

if you have "files" directory in the same place where is your .json, and in that directory you have "gallery.html" and "gallery.js", then your "custom_template" should look like this:

"custom_template": "files/gallery"

(no leading slash, no extension)

perak commented 9 years ago

(btw, meteor-kitchen will properly insert gallery.html and gallery.js content into destination page's html and js files, you don't need to copy anything into destination directory)

perak commented 9 years ago

(one more thing - are you using windows? if so, please use backslash as directory separator - meteor-kitchen is "smart" enough to detect and convert slash into backslash, but... never believe program if it is too "smart" :D )

flenoir commented 9 years ago

no i'm on mac

i keep triyng but still not working

if i only use the json file, it should create the files directory and the 2 files , right ? but it's not

it's weird

flenoir commented 9 years ago

is there a problem with writing rights on this folder ?

perak commented 9 years ago

ooops, now I understand your issue: are you trying to build example? You need all files from example directory (not only json)

perak commented 9 years ago

I believe you are trying to build example-upload, right?

Just clone examples repository.

BTW, all examples are supplied with meteor-kitchen, you can build examples by executing:

meteor-kitchen --example-upload ./destination_directory

flenoir commented 9 years ago

thanks it's working now ;)

perak commented 9 years ago

:+1: