本文介绍了重复的jhipster项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经开发了一个Jhipster项目.我需要创建一个新的,它将完全相同(但不相同).我想复制第一个项目.第二个项目将具有不同的名称和不同的主包名称.
I have developped a Jhipster project.I need to create a new one which will be quite the same (but not the same). I would like to duplicate the first project.The second project would just have a different name and different main package name.
有没有办法做到这一点?
Is there a way to do that properly?
谢谢
推荐答案
- 复制项目文件夹,在新文件夹中编辑
.yo-rc.json
文件,并更改名称和包.您可能还需要更改RememberMeKey - 删除src文件夹
- 运行
jhipster --with-entities
以使用新设置重新生成应用 - 从旧项目复制回已添加的内容
- Duplicate your project folder, in new folder edit
.yo-rc.json
file and change name and package. You may also want to change the rememberMeKey - Delete src folder
- Run
jhipster --with-entities
to re-generate app with new settings - Copy back from old project what you've added
这篇关于重复的jhipster项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!