Local development deployment and Docker deployment issues (OD-2631)
wangh opened 4 weeks ago

Hello, may I ask you a question? I'm currently facing two difficulties. The first one is that when I perform secondary development in the local development environment using IDEA and re-execute "mvn clean install -Pce" to generate the deployment package, and then start the project in the Linux environment using "server.sh", the original code submission records and code data are lost. How can I solve this problem? Can I only upload the modified JAR package to the lib directory to solve it?

The second difficulty is that when I perform secondary development of the code using IDEA and deploy it using Docker, how should I operate? I checked the tutorial you wrote on the official website, but I didn't understand how the image "1dev" was created.

  • Robin Shen commented 4 weeks ago

    I am not using IntelliJ, so can not help here.

  • Robin Shen changed state to 'Closed' 4 weeks ago
    Previous Value Current Value
    Open
    Closed
  • jbauer commented 3 weeks ago

    Hello, may I ask you a question? I'm currently facing two difficulties. The first one is that when I perform secondary development in the local development environment using IDEA and re-execute "mvn clean install -Pce" to generate the deployment package, and then start the project in the Linux environment using "server.sh", the original code submission records and code data are lost. How can I solve this problem? Can I only upload the modified JAR package to the lib directory to solve it?

    I am not quite sure what you mean with "code submission records and code data are lost" but if you mean that your created repositories in OneDev are gone then it is because you call clean which deletes server-product/target/sandbox. That folder is the working directory / installation folder of OneDev and OneDev generally creates repositories on disk. So don't delete it.

    The second difficulty is that when I perform secondary development of the code using IDEA and deploy it using Docker, how should I operate? I checked the tutorial you wrote on the official website, but I didn't understand how the image "1dev" was created.

    You use server-product/docker/Dockerfile.server to build the image.

issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2631
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover