Code & Deploy
Code
Models
Repos
Sign in
@setoelkahfi
/
homebrew-tap
homebrew-tap
/
bin
/
docker-entrypoint
Code
Commits
Pulls
CI/CD
205
main
main
text
8 lines
203 Bytes
Copy permalink
Copy
Raw
1
#!/bin/bash -e
2
3
# If running the rails server then create or migrate existing database
4
if
[
"
${
@
:
-2
:1
}
"
==
"./bin/rails"
]
&&
[
"
${
@
:
-1
:1
}
"
==
"server"
]
;
then
5
./bin/rails db:prepare
6
fi
7
8
exec
"
${
@
}
"