Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Documento para la instalacion de Konekto 1.0
- ---------------------------------------------
- Luego de la instalacion si da error Could not retrieve mirrorlist al tratar instalar algun paquete:
- Editar el archivo resolv.conf y agregar el DNS de google /etc/resolv.conf
- vi /etc/resolv.conf
- nameserver 8.8.8.8
- Instalar apache:
- yum -y install httpd
- firewall-cmd --zone=public --permanent --add-service=http
- firewall-cmd --zone=public --permanent --add-service=https
- firewall-cmd --reload
- systemctl start httpd (inicia el servicio)
- systemctl enable httpd (Be sure that Apache starts at boot)
- Instalar Postgresql
- yum install -y postgresql-server postgresql-contrib postgresql-devel
- Se inicia un nuevo cluster de base de datos Postgresql
- postgresql-setup initdb
- Se habilita la autenticacion de claves.
- vi /var/lib/pgsql/data/pg_hba.conf
- Buscar:
- host all all 127.0.0.1/32 ident
- host all all ::1/128 ident
- Cambiar por:
- host all all 127.0.0.1/32 md5
- host all all ::1/128 md5
- Iniciar y habilitar postgresql:
- systemctl start postgresql
- systemctl enable postgresql
- Configurar la base de datos para Konekto:
- 1.- su - postgres
- 2.- psql
- 3.- CREATE DATABASE konektodb;
- 4.- CREATE USER konekto WITH PASSWORD 'k0n3kt0v01p';
- 5.- GRANT ALL PRIVILEGES ON DATABASE konektodb TO konekto;
- Install RVM
- Se genera la clave para la instalacion del RVM y se descarga
- la version stable para su instalacion
- gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
- curl -sSL https://get.rvm.io | sudo bash -s stable
- source /etc/profile
- Install Ruby with RVM
- rvm install ruby-2.4.1
- Install Rails 5.0.3
- gem install rails -v 5.0.3
- Install Bundler
- gem install bundler --no-rdoc --no-ri
- Install NodeJS
- sudo yum install -y --enablerepo=epel nodejs npm
- Clonar el repositorio y puesta en marcha en modo desarrollo
- cd /var/www/http
- git clone http://gitkonekto.vikua.com:7990/scm/kon/konekto1.git (se puede indicar la rama a descargar con el parametro -b)
- indicar usuario
- indicar clave
- mv konekto1/ konekto/
- cd konekto
- bundle install
- Editar los valores de la conexion de la base de datos:
- vi config/database.yml
- Agregar los siguientes valores donde corresponda:
- username: konekto
- password: k0n3kt0v01p
- database: konektodb
- rails db:create db:migrate db:seed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement