Komodo / komodo-website

The official Komodo IDE and Komodo Edit website
http://komodoide.com/
18 stars 9 forks source link

run "/root/npm/bin/docpad run" failed #3

Closed luckypoem closed 10 years ago

luckypoem commented 10 years ago

hi.

root@as3:~/komodo-website# /root/npm/bin/docpad run error: Failed to load the configuration path: /root/komodo-website/docpad.coffee error: Something went wrong with the action error: An error occured: Error: Cannot find module '/root/komodo-website/src/resources/categories.coffee' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at app.requireFresh (/root/komodo-website/node_modules/requirefresh/out/lib/requirefresh.js:30:14) at Object. (/root/komodo-website/docpad.coffee:354:21) at Object. (/root/komodo-website/docpad.coffee:410:4) at Module._compile (module.js:456:26) at Object.loadFile (/root/komodo-website/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:182:19) at Module.load (/root/komodo-website/node_modules/docpad/node_modules/cson/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.app.requireFresh (/root/komodo-website/node_modules/requirefresh/out/lib/requirefresh.js:30:14) at /root/komodo-website/node_modules/requirefresh/out/lib/requirefresh.js:16:22 at b (domain.js:183:18) at Domain.run (domain.js:123:23) at app.requireFreshSafe (/root/komodo-website/node_modules/requirefresh/out/lib/requirefresh.js:13:7) at Object.CSON.parseFile (/root/komodo-website/node_modules/docpad/node_modules/cson/out/lib/cson.js:28:9) at /root/komodo-website/node_modules/docpad/out/lib/docpad.js:1598:23 at Object.cb as oncomplete info: Shutting down... cya next time! root@as3:~/komodo-website#

how to fix it? tks a lot.

Naatan commented 10 years ago

Probably just need a git submodule update --init.

The steps here are probably more up-to-date: https://github.com/Komodo/komodo-website/blob/master/deploy.js#L18

luckypoem commented 10 years ago

hi. in https://github.com/Komodo/komodo-website ,i see .gitmodules file,so i should run "git submodule update --init --recursive",now it's ok

luckypoem commented 10 years ago

hi, i installed it here: http://as3.brite.biz:43855/ ,http://as3.brite.biz:43855/blog/ ,but http://as3.brite.biz:43855/ is deformed,i checked the docpad.coffee,where to set the url? and why http://as3.brite.biz:43855/blog/ is just a listing? how to fix them? tks.

Naatan commented 10 years ago

Before I assist you any further may I ask what your intentions are? Although the code is Open-Source the trademark and other copyrighted material is not, it is essentially for contributing and educational purposes.

luckypoem commented 10 years ago

hi. i just want to borrow ur version of docpad to build my site,all ur copyrighted material will be deleted by me. tks for ur help

luckypoem commented 10 years ago

just want the /blog part,i will set the homepage to hop to /blog

Naatan commented 10 years ago

Ok just checking, you'll want to have a look at https://github.com/Komodo/komodo-website/blob/master/docpad.coffee#L157

That said, if what you're looking for is a bootstrap then you should probably have a look at the Docpad skeletons - http://docpad.org/docs/skeletons.