ICF244 Arquitectura de Sistemas - Tarea 1 y 2: Comunidad UNAB
-
Alumno de prueba:
- Email:
alumno@gatica.exe
- Contraseña:
alumno
- Email:
-
Profesor de prueba:
- Email:
profesor@gatica.exe
- Contraseña:
profesor
- Email:
-
Rails 6.0.0:
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB sudo apt install curl \curl -sSL https://get.rvm.io | bash \curl -sSL https://get.rvm.io | bash -s stable --rails rails --v
-
Ruby 2.6.5:
- Using rbenv:
rbenv install 2.6.5
- Using RVM:
rvm install ruby-2.6.5 rvm use ruby-2.6.5
- Using rbenv:
-
Docker:
sudo apt install docker-compose
To run rails server:
docker-compose build
docker-compose run web rails db:create
docker-compose run web rails db:migrate
docker-compose run web rails db:seed
docker-compose up
Open rails console:
docker-compose run web rails c
Stop containers, networks and drop database:
docker-compose run web rails db:drop
docker-compose stop
docker-compose down
Now when you modify Gemfile, you have to sync changes in Gemfile.lock using:
docker-compose run web bundle install
docker-compose up --build
-
To fix "Error installing pg: ERROR: Failed to build gem native extension." :
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev postgresql-client-common postgresql-client libpq-dev
-
To fix "PG::ConnectionBad (could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?):" :
sudo service postgresql start
-
To fix "Webpacker::Manifest::MissingEntryError - Webpacker can't find application in /feedback/public/packs/manifest.json" and "[Webpacker] Compilation failed: web_1 | /usr/local/bundle/gems/webpacker-4.0.7/lib/webpacker/runner.rb:13:in `': No such file or directory - yarn (Errno::ENOENT) web_1 | from /usr/local/bundle/gems/webpacker-4.0.7/lib/webpacker runner.rb:13:in" :
bundle exec rake assets:precompile docker-compose build docker-compose up
-
To fix "Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)"
sudo apt-get install nodejs
- Pedro Conejera - 2019 - PedroConejera
- Gonzalo Manquilef - 2019 - GonzaloManquilef
- Luciano Huenuvil - 2019 - LucianoHuenuvil