Giter Site home page Giter Site logo

sre-fall-21's Introduction

SRE Site

Test

Deploy

First, ensure .env file is present under the top level of the project with the correct configuration.

There are multiple steps to deploying the site with docker:

Initialize docker containers

docker-compose up --no-start    # create containers, volumes, network, etc

Set up postgres server

docker-compose start postgres   # starts the postgresql container

Bring up all services

docker-compose up -d --build    # starts all services (backend)

After the services are started up and running, proceed to set up some one-time configuration for django

One-time conifguration

docker-compose exec backend python manage.py createsuperuser    # create admin accounts for the web app

Develop

Start python application

On a separate shell, do:

dotenv python3 manage.py runserver 0.0.0.0:9000     # run python app

Watch tailwind css style changes

On a separate shell, do:

npx postcss css/tailwind.css -o static/css/tailwind-output.css --watch 

Now make changes to the code/html and see the changes live!

This workflow aims to resolve commit history conflicts.

After committing (git commit) new changes, before pushing to the remote repository:

git remote update               # checks for new commits from the remote repository
git rebase remotes/origin/main  # rebase, or align commit history, with the remote main branch

If rebase fails due to merge conflict, resolve the conflict and commit the resolution.

Then push to your branch and the main branch:

git push origin <your_branch>
git push origin HEAD:main       # main branch

sre-fall-21's People

Contributors

billyzou0741326 avatar alexkaletin avatar

Watchers

James Cloos avatar  avatar

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.