简体   繁体   中英

Spring boot & Angular application Deployement

i need to create a.sh/.exe file which contains eclipse STS commands to run the spring boot application and the same thing for angular with VS Code.. i don't know if there is other solutions. My problem is how to create an executable file which run my project. Any help please? Thank you.

Linux

If you add the configuration executable=true to the maven plugin.

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <executable>true</executable>
    </configuration>
</plugin>

This will add an extra script at the front of the file and make it executable on Linux.

See the documentation for more information: https://tryingthings.wordpress.com/2018/03/14/packaging-a-spring-boot-application-as-windows-exe/

Windows

Windows is not that straight forward. You could use Launch4J http://launch4j.sourceforge.net/

Here is a guide how to configure the Launch4J Maven plugin:

https://tryingthings.wordpress.com/2018/03/14/packaging-a-spring-boot-application-as-windows-exe/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM