On the working directory where the Amplify application is installed (usually /amp1/
):
rbenv install 2.7.3
(change the version accordingly)gem install bundler
gem install rails
BUNDLE_GITLAB__COM=bundler:UoS1DTrBrPPDAyfCS3p5 bundle install
(this will install all the necessary packages for this Amplify version)pm2 start
bin/rails db:migrate RAILS_ENV=development
)List available Ruby versions:
rbenv install -l
Set local Ruby version:
Sets a local per-project Ruby version by writing the version name to an .rbenv-version
file in the current directory. This version overrides the global, and can be overridden itself by setting the RBENV_VERSION
environment variable or with the rbenv shell
command.
$ rbenv local rbx-1.2.4
When run without a version number, rbenv local
reports the currently configured local version. You can also unset the local version:
$ rbenv local --unset
More information: https://javierjulio.com/rbenv/#section_3.2