You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default mode when the application is built or started is 'development'. The 'production' mode is turned on by enabling the `production` profile when building or starting the app.
50
50
51
+
52
+
# Deploy the application for Production
53
+
54
+
`mvn package -Pproduction`
55
+
56
+
Then run it with
57
+
58
+
`java -jar target/*.jar`
59
+
60
+
61
+
# Deploying the Project in Control Center
62
+
63
+
Bakery has a profile that allows the application being deployed with [Control Center](https://vaadin.com/docs/latest/control-center)
64
+
65
+
Compile, package, build the image and upload to docker hub.
66
+
67
+
```
68
+
mvn package -P production -P control-center
69
+
docker build -t your_docker_id/bakery:latest .
70
+
docker push your_docker_id/bakery:latest
71
+
```
72
+
73
+
Import it in Control Center selecting the `Identity manager` flag. Then create roles `admin`, `baker` and `barista` in Control Center and create the corresponding users to login into bakery application.
74
+
75
+
76
+
51
77
# Running in Eclipse or IntelliJ
52
78
As both IDEs support running Spring Boot applications you just have to import the project and select `com.vaadin.starter.bakery.Application` as main class if not done automatically. Using an IDE will also allow you to speed up development even more. Just check https://vaadin.com/blog/developing-without-server-restarts.
0 commit comments