From 33cd079f7c13f61b9c85e3fc288701f58e691fc1 Mon Sep 17 00:00:00 2001 From: manegron Date: Thu, 24 Oct 2024 00:14:01 +0100 Subject: [PATCH 1/2] add rails console --- resources/bin/rb_rails_console.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 resources/bin/rb_rails_console.sh diff --git a/resources/bin/rb_rails_console.sh b/resources/bin/rb_rails_console.sh new file mode 100755 index 0000000..9fe617a --- /dev/null +++ b/resources/bin/rb_rails_console.sh @@ -0,0 +1,31 @@ +#!/bin/bash - + +####################################################################### +# Copyright (c) 2024 ENEO Tecnologia S.L. +# This file is part of redBorder. +# redBorder is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# redBorder is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License License for more details. +# You should have received a copy of the GNU Affero General Public License License +# along with redBorder. If not, see . +####################################################################### + +if [ ! -d /var/www/rb-rails ]; then + echo 'ERROR: rb-rails not found!' + exit 1 +fi + +source /etc/profile + +pushd /var/www/rb-rails &>/dev/nul + +rvm gemset use web &>/dev/null + +RAILS_ENV=production rails console + +exit 0 From eb78371d0d1e7c7cff5a8dda22c3f67716f95895 Mon Sep 17 00:00:00 2001 From: Miguel Negron Date: Thu, 24 Oct 2024 00:14:52 +0100 Subject: [PATCH 2/2] Bump version --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 4a36342..fd2a018 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0.0 +3.1.0