Dev Server
Resume
The current Dev Server is a Ubuntu Server.
External IP is 190.215.197.206
The opened port are 80
and 443
.
SSH
SSH access requires VPN access.
SSH Port: 22
Internal IP Address: 10.8.0.44
VPN
Please request a VPN access to Cenabast project manager.
sudo openfortivpn 190.215.197.202:10443 -u "username" -p "XXXXXXX"
Ports
The following ports should be allowed: 22
, 80
, 443
, 587
.
Docker
Container path is at /root/containers/cenabast.gob.cl
Useful commands
Quick video intro => https://youtu.be/lJkh3XUYrRE
Login: ssh username@10.8.0.44
Change to root user: sudo su
Go to working directory: cd /root/containers/cenabast.gob.cl
Pull main branch: git pull origin main
Rebuild container: docker-compose build --no-cache
Store Bunlde install: docker compose run web bundle install
Store DB migrations: docker compose run web rake db:migrate
Relauch new containers: docker compose up -d --build --force-recreate --no-deps
Stop containers: docker compose down
Start containers: docker compose up -d
Check Logs containers: docker compose logs -f
Log into container: docker exec -it -u root e1cc /bin/bash
where 'e1cc' is the container ID.
Running containers:
Docker Compose
Check the docker-compose.yml.