Code Monkey home page Code Monkey logo

seminario's Introduction

Proyecto bomberos voluntarios

TODO

Setup

# Debemos de crear el archivo .env

# Aquí se debe colocar la secret key que le servirá a Django.
SECRET_KEY=CHANGE_ME
# Aquí debemos de indicar que el servidor a lanzar no estará en modo de desarrollo.
DEBUG=FALSE
# Ejecutar los siguientes comandos
docker compose exec web python manage.py collectstatic
docker compose exec web python manage.py makemigrations
docker compose exec web python manage.py migrate
docker compose exec web python manage.py create_default_groups

Backups

# Dar permisos al script
chmod ugo+rwx ./backup.sh

# Crear carpeta de logs y backups
mkdir -p ~/backups/logs

# Agregar el script de backup al cron
crontab -e

# Editar el archivo, (aquí se ejecutaría cada día el backup a las 11 AM)
0 11 * * * ~/sistema-reportes-ambulancias/backup.sh >> ~/backups/logs/backup_logs.log 2>&1
#- - - - -
#| | | | |
#| | | | +-- Day of the week (0 - 7) [Both 0 and 7 represent Sunday]
#| | | +---- Month (1 - 12)
#| | +------ Day of the month (1 - 31)
#| +-------- Hour (0 - 23)
#+---------- Minute (0 - 59)

Integrantes

  • Alan David González López
  • José Raúl Botzoc Mérida
  • Manuel Miguel Miguel

seminario's People

Contributors

alanfzf avatar

Watchers

 avatar

Forkers

miguemi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.