Skip to main content

Dev Server

Resume

IP

The current Dev Server is a Ubuntu Server.
External IP is 190.215.197.206

warning

The opened port are 80 and 443.

SSH

VPN dependency

SSH access requires VPN access.

SSH Port: 22
Internal IP Address: 10.8.0.44

VPN

VPN requirement

Please request a VPN access to Cenabast project manager.

sudo openfortivpn 190.215.197.202:10443 -u "username" -p "XXXXXXX"

Ports

Ports opening request

The following ports should be allowed: 22, 80, 443, 587.

Docker

info

Container path is at /root/containers/cenabast.gob.cl

Useful commands

Video intro

Quick video intro => https://youtu.be/lJkh3XUYrRE

Login to Dev Server

Login: ssh username@10.8.0.44 Change to root user: sudo su

Update code

Go to working directory: cd /root/containers/cenabast.gob.cl
Pull main branch: git pull origin main

Rebuild

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

Other

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:

runningcontainers

Docker Compose

danger