Skip to content

Commit 9aa2a36

Browse files
committed
scripts
1 parent 8d2d3cc commit 9aa2a36

3 files changed

Lines changed: 36 additions & 4 deletions

File tree

api/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
<java.version>17</java.version>
2020
</properties>
2121

22-
<pluginRepositories>
22+
<!-- <pluginRepositories>
2323
<pluginRepository>
2424
<id>jitpack.io</id>
2525
<url>https://jitpack.io</url>
2626
</pluginRepository>
27-
</pluginRepositories>
27+
</pluginRepositories> -->
2828

2929
<dependencies>
3030
<!-- spring boot -->
@@ -225,11 +225,11 @@
225225

226226
<build>
227227
<plugins>
228-
<plugin>
228+
<!-- <plugin>
229229
<groupId>com.github.throyer</groupId>
230230
<artifactId>migration-maven-plugin</artifactId>
231231
<version>1.2.7</version>
232-
</plugin>
232+
</plugin> -->
233233
<plugin>
234234
<groupId>org.springframework.boot</groupId>
235235
<artifactId>spring-boot-maven-plugin</artifactId>

scripts/dev.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
if [ -z "$1" ]; then
2+
echo "invalid argument"
3+
return
4+
fi
5+
6+
if [ $1 = "up" ]; then
7+
docker-compose -p example-api-development -f ./docker/docker-compose.dev.yml --env-file ./docker/.env up -d --force-recreate
8+
return
9+
fi
10+
11+
if [ $1 = "down" ]; then
12+
docker-compose -p example-api-development -f ./docker/docker-compose.dev.yml down
13+
return
14+
fi
15+
16+
echo "invalid argument"

scripts/prod.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
if [ -z "$1" ]; then
2+
echo "invalid argument"
3+
return
4+
fi
5+
6+
if [ $1 = "up" ]; then
7+
docker-compose -p example-api -f ./docker/docker-compose.prod.yml --env-file ./docker/.env up -d --build
8+
return
9+
fi
10+
11+
if [ $1 = "down" ]; then
12+
docker-compose -p example-api -f ./docker/docker-compose.prod.yml down
13+
return
14+
fi
15+
16+
echo "invalid argument"

0 commit comments

Comments
 (0)