Skip to content

Commit

Permalink
udpate script
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Nov 8, 2021
1 parent ff19d4c commit 28a5a59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Installing Decidim
> Check the formatted guide!
> 👉 [https://platoniq.github.io/decidim-install/](https://platoniq.github.io/decidim-install/)
![[CI] Install Script](https://github.com/Platoniq/decidim-install/workflows/%5BCI%5D%20Install%20Script/badge.svg)
![[CI] Install Script v.25.1](https://github.com/Platoniq/decidim-install/workflows/%5BCI%5D%20Install%20Script/badge.svg)

A easy guide to install [Decidim](https://github.com/decidim/decidim), which is a participatory democracy framework created in Ruby on Rails.

Expand Down
14 changes: 7 additions & 7 deletions script/install-decidim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ echo -e "***********************************************************************
########################################################

RUBY_VERSION="2.7.4"
DECIDIM_VERSION="0.25"
BUNDLER_VERSION="2.2.18"
RAILS_VERSION="6.0.4"
VERBOSE=
DECIDIM_VERSION="0.25.1"
# BUNDLER_VERSION="2.2.18"
# RAILS_VERSION="6.0.4"
# VERBOSE=
CONFIRM=1
STEPS=("check" "prepare" "rbenv" "gems" "decidim" "postgres" "create" "servers")
# default environment to be configured
Expand Down Expand Up @@ -279,8 +279,8 @@ step_gems() {
red "gem home failed! $(gem env home)!"
exit 1
fi
info "Installing Rails, version $RAILS_VERSION"
gem install rails --version $RAILS_VERSION
# info "Installing Rails, version $RAILS_VERSION"
# gem install rails --version $RAILS_VERSION

# Version 0.25 has a bug and do not limit the version o rails to 6.0 in the generator
# Therefore, if rails 6.1 is installed it will fail
Expand Down Expand Up @@ -327,7 +327,7 @@ step_decidim() {
yellow "$INSTALL_FOLDER already exists, trying to install gems anyway"
else
decidim "$INSTALL_FOLDER"
sed -i 's/ config.load_defaults 6.1/ config.load_defaults 6.0/' $INSTALL_FOLDER/config/application.rb
# sed -i 's/ config.load_defaults 6.1/ config.load_defaults 6.0/' $INSTALL_FOLDER/config/application.rb
fi

if [ ! -z "$CAPISTRANO" ]; then
Expand Down

0 comments on commit 28a5a59

Please sign in to comment.