Skip to content

Commit 183d3cc

Browse files
committed
add script to start prod console
1 parent dd7d56d commit 183d3cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/prod-console

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
5+
if [[ -n $RAILS_ENV && $RAILS_ENV != "development" ]]; then
6+
echo "Refusing to run in $RAILS_ENV environment."
7+
exit 1
8+
fi
9+
10+
fly ssh console -C "app/bin/rails c"

0 commit comments

Comments
 (0)