Skip to content

Commit 58cb67c

Browse files
committed
QoL: added up function to stand up docker compose and down function
1 parent a2db15e commit 58cb67c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ function _build_run_down {
2828

2929
# -----------------------------------------------------------------------------
3030

31+
function up {
32+
docker compose up -d --build
33+
docker compose exec web bundle exec rails db:setup db:migrate db:seed
34+
./go test
35+
docker compose logs -f web
36+
}
37+
38+
function down {
39+
docker compose down
40+
}
41+
3142
function cmd {
3243
# Run any command you want in the web container
3344
_dc web "${@}"

0 commit comments

Comments
 (0)