Skip to content

Commit 7131fd7

Browse files
committed
Inline instruction for ENV vars
1 parent c1aeff2 commit 7131fd7

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

  • lib/solidus_dev_support/templates/extension/bin

lib/solidus_dev_support/templates/extension/bin/sandbox.tt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,28 @@ postgres|postgresql)
99
mysql)
1010
RAILSDB="mysql"
1111
;;
12-
sqlite|'')
12+
sqlite)
13+
RAILSDB="sqlite3"
14+
;;
15+
'')
16+
echo "~~> Use 'export DB=[postgres|mysql|sqlite]' to control the DB adapter"
1317
RAILSDB="sqlite3"
1418
;;
1519
*)
1620
echo "Invalid DB specified: $DB"
1721
exit 1
1822
;;
1923
esac
24+
echo "~~> Using $RAILSDB as the database engine"
2025

21-
if [ ! -z $SOLIDUS_BRANCH ]
26+
if [ -n $SOLIDUS_BRANCH ]
2227
then
2328
BRANCH=$SOLIDUS_BRANCH
2429
else
30+
echo "~~> Use 'export SOLIDUS_BRANCH=[master|v3.2|...]' to control the Solidus branch"
2531
BRANCH="master"
2632
fi
33+
echo "~~> Using branch $BRANCH of solidus"
2734

2835
extension_name="<%= file_name %>"
2936

@@ -80,7 +87,4 @@ unbundled bundle exec rails generate ${extension_name}:install
8087

8188
echo
8289
echo "🚀 Sandbox app successfully created for $extension_name!"
83-
echo "🚀 Using $RAILSDB and Solidus $BRANCH"
84-
echo "🚀 Use 'export DB=[postgres|mysql|sqlite]' to control the DB adapter"
85-
echo "🚀 Use 'export SOLIDUS_BRANCH=<BRANCH-NAME>' to control the Solidus version"
86-
echo "🚀 This app is intended for test purposes."
90+
echo "🧪 This app is intended for test purposes."

0 commit comments

Comments
 (0)