Ruby on Rails z Directadmin i Centosem
Installing Ruby on Rails DA CentOS is not quite a complicated operation.
I never mail this experience and I think, however, that even a layman can handle installation.
Follow these steps:
update the system and install git:
1 2 | sudo yum update sudo yum install git |
We install the necessary components:
1 | sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel |
We collect and compile components
1 2 3 4 5 6 7 | cd ~ git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile source ~/.bash_profile |
command
1 | rbenv install -l |
Searches us all versions
installation version 2.23 from series 3 I did not want to go
1 2 | rbenv install -v 2.2.3 rbenv rehash |
set as the default installed version:
1 | rbenv global 2.2.3 |
Checking version:
1 | ruby -v |
Installation GEM
1 | gem install bundler |
Installing the rails
1 2 | gem install rails rbenv rehash |
check which version of rails
1 | rails -v |
Installation nodejs
1 2 | sudo yum install nodejs |
Create the sample application:
1 2 3 4 | cd ~ rails new pilotapp cd pilotapp rake db:create |
and its launch:
1 | rails server --binding=ADRESIPSERWERA |
Related entries:
How to change the background color / Ubuntu login screen wallpaper 21.10
sudo snap install blender --classic/pre> 3.1.0 dl.winehq.org/wine-builds/winehq.key
Configure phpMyAdmin to use the authentication cookies
Installation of the redis module for the server with DirectAdmin
Resolved issue with smarty_lazy_cache 'does not exist