首先,我喜欢这个框架......这很有趣。我仍然了解自己的方式,并且在使用hsqldb dev数据库生成项目时没有任何问题,但在尝试连接到localhost的本地PostgreSQL数据库时,我无法生成它。有什么我想念的吗?
错误输出:
[?] (3/7) Do you want to use Hibernate 2nd level cache? Yes, with ehcache (local cache, for a single node)
[?] (4/7) Do you want to use clustered HTTP sessions? No
[?] (5/7) Which *production* database would you like to use? PostgreSQL
[?] (6/7) Which *development* database would you like to use? PostgreSQL
[?] (7/7) Would you like to use the Compass CSS Authoring Framework? No
undefined:33
((__t = ( localhost )) == null ? '' : __t);
^
ReferenceError: localhost is not defined
at eval (eval at template (/usr/lib/node_modules/generator- jhipster/node_modules/yeoman-generator/node_modules/lodash/dist/lodash.js:6305:22), <anonymous>:33:11)
at JhipsterGenerator.underscore [as _engine] (/usr/lib/node_modules/generator- jhipster/node_modules/yeoman-generator/lib/util/engines.js:32:30)
at JhipsterGenerator.engine (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/actions/actions.js:303:10)
at JhipsterGenerator.template (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/actions/actions.js:281:15)
at JhipsterGenerator.app (/usr/lib/node_modules/generator-jhipster/app/index.js:169:10)
at /usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/base.js:341:43
at /usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/node_modules/async/lib/async.js:551:21
at /usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/node_modules/async/lib/async.js:227:13
at iterate (/usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/node_modules/async/lib/async.js:134:13)
at /usr/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/node_modules/async/lib/async.js:145:25
答案 0 :(得分:3)
不,这不是你的错,这是一个错误: - )
我在这里引用了它:https://github.com/jhipster/generator-jhipster/issues/105
我为你做了一个bug修复版本:http://jhipster.github.io/2014/01/23/jhipster-release-0.8.1.html