Kategorie: DirectAdminLinux

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:

sudo yum update
sudo yum install git

We install the necessary components:

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

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

rbenv install -l

Searches us all versions

installation version 2.23 from series 3 I did not want to go

rbenv install -v 2.2.3
rbenv rehash

set as the default installed version:

rbenv global 2.2.3

Checking version:

ruby -v

Installation GEM

gem install bundler

Installing the rails

gem install rails
rbenv rehash

check which version of rails

rails -v

Installation nodejs

sudo yum install nodejs

Create the sample application:

cd ~
rails new pilotapp
cd pilotapp
rake db:create

and its launch:

rails server --binding=ADRESIPSERWERA

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu