Advertisement
Guest User

Untitled

a guest
Jul 10th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. Documento para la instalacion de Konekto 1.0
  2. ---------------------------------------------
  3.  
  4. Luego de la instalacion si da error Could not retrieve mirrorlist al tratar instalar algun paquete:
  5. Editar el archivo resolv.conf y agregar el DNS de google /etc/resolv.conf
  6. vi /etc/resolv.conf
  7. nameserver 8.8.8.8
  8.  
  9. Instalar apache:
  10.  
  11. yum -y install httpd
  12.  
  13. firewall-cmd --zone=public --permanent --add-service=http
  14. firewall-cmd --zone=public --permanent --add-service=https
  15. firewall-cmd --reload
  16.  
  17. systemctl start httpd (inicia el servicio)
  18. systemctl enable httpd (Be sure that Apache starts at boot)
  19.  
  20. Instalar Postgresql
  21.  
  22. yum install -y postgresql-server postgresql-contrib postgresql-devel
  23.  
  24. Se inicia un nuevo cluster de base de datos Postgresql
  25. postgresql-setup initdb
  26.  
  27. Se habilita la autenticacion de claves.
  28. vi /var/lib/pgsql/data/pg_hba.conf
  29.  
  30. Buscar:
  31. host all all 127.0.0.1/32 ident
  32. host all all ::1/128 ident
  33.  
  34. Cambiar por:
  35. host all all 127.0.0.1/32 md5
  36. host all all ::1/128 md5
  37.  
  38. Iniciar y habilitar postgresql:
  39. systemctl start postgresql
  40. systemctl enable postgresql
  41.  
  42. Configurar la base de datos para Konekto:
  43. 1.- su - postgres
  44. 2.- psql
  45. 3.- CREATE DATABASE konektodb;
  46. 4.- CREATE USER konekto WITH PASSWORD 'k0n3kt0v01p';
  47. 5.- GRANT ALL PRIVILEGES ON DATABASE konektodb TO konekto;
  48.  
  49. Install RVM
  50.  
  51. Se genera la clave para la instalacion del RVM y se descarga
  52. la version stable para su instalacion
  53. gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
  54. curl -sSL https://get.rvm.io | sudo bash -s stable
  55.  
  56. source /etc/profile
  57.  
  58. Install Ruby with RVM
  59.  
  60. rvm install ruby-2.4.1
  61.  
  62. Install Rails 5.0.3
  63.  
  64. gem install rails -v 5.0.3
  65.  
  66. Install Bundler
  67.  
  68. gem install bundler --no-rdoc --no-ri
  69.  
  70. Install NodeJS
  71.  
  72. sudo yum install -y --enablerepo=epel nodejs npm
  73.  
  74. Clonar el repositorio y puesta en marcha en modo desarrollo
  75.  
  76. cd /var/www/http
  77. git clone http://gitkonekto.vikua.com:7990/scm/kon/konekto1.git (se puede indicar la rama a descargar con el parametro -b)
  78. indicar usuario
  79. indicar clave
  80.  
  81. mv konekto1/ konekto/
  82. cd konekto
  83.  
  84. bundle install
  85.  
  86. Editar los valores de la conexion de la base de datos:
  87. vi config/database.yml
  88. Agregar los siguientes valores donde corresponda:
  89. username: konekto
  90. password: k0n3kt0v01p
  91. database: konektodb
  92.  
  93. rails db:create db:migrate db:seed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement