Duplicate jhipster project

2019-06-24 05:32发布

问题:

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?

Thanks

回答1:

  1. 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
  2. Delete src folder
  3. Run jhipster --with-entities to re-generate app with new settings
  4. Copy back from old project what you've added


回答2:

Delete yo-rc.json .... and generate your new entity then every thing will be ok (Tested)



标签: jhipster