File tree Expand file tree Collapse file tree
lib/solidus_dev_support/templates/extension/bin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,21 +9,28 @@ postgres|postgresql)
99mysql)
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 ;;
1923esac
24+ echo " ~~> Using $RAILSDB as the database engine"
2025
21- if [ ! -z $SOLIDUS_BRANCH ]
26+ if [ -n $SOLIDUS_BRANCH ]
2227then
2328 BRANCH=$SOLIDUS_BRANCH
2429else
30+ echo " ~~> Use 'export SOLIDUS_BRANCH=[master|v3.2|...]' to control the Solidus branch"
2531 BRANCH=" master"
2632fi
33+ echo " ~~> Using branch $BRANCH of solidus"
2734
2835extension_name=" <%= file_name %>"
2936
@@ -80,7 +87,4 @@ unbundled bundle exec rails generate ${extension_name}:install
8087
8188echo
8289echo " 🚀 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."
You can’t perform that action at this time.
0 commit comments