added sqlite to Gemfile (#2528)

This commit is contained in:
Ahmad Farhat
2021-02-12 18:35:00 -05:00
committed by GitHub
parent c738bb44ea
commit 96b554bb5b
2 changed files with 3 additions and 9 deletions

View File

@ -55,13 +55,6 @@ if [ "$CD_REF_NAME" != "master" ] && [[ "$CD_REF_NAME" != *"release"* ]] && [[ "
exit 0
fi
# Include sqlite for production
sqliteCount="$(grep "gem 'sqlite3'" Gemfile | wc -l)"
if [ $sqliteCount -lt 2 ]; then
sed -i "/^group :production do/a\ \ gem 'sqlite3', '~> 1.3.6'" Gemfile
fi
# Set the version tag when it is a release or the commit sha was included.
if [[ "$CD_REF_NAME" == *"release"* ]]; then
export CD_VERSION_CODE=${CD_REF_NAME:8}