GithubHelp home page GithubHelp logo

hava's Introduction

# Run init bash
cd hava/Dockerfiles/postgres

# Delete old containers and images
docker stop my-postgres-container
docker rm my-postgres-container
docker rmi my-postgres
docker volume rm pgdata

# Create new volume and run container
docker build -t my-postgres .
docker volume create pgdata
docker run -p 5432:5432 --name my-postgres-container -v pgdata:/var/lib/postgresql/data -d my-postgres
docker ps

# Delete Migrations directory and create new migrations
cd ../..
rm -rf Migrations
dotnet ef migrations add initial
dotnet ef database update

# Run Tests which also seeds DB because of Auth integration test
cd ../Testing
dotnet test

See Everything

docker ps
systemctl status nginx

On Database Updates

cd hava
dotnet ef migrations add initial
dotnet ef database update

For production

sudo systemctl start postgresql
sudo systemctl start apichipper.service
sudo systemctl start nginx

For creating new service for .net core app in production:

For development

nginx

sudo systemctl start nginx

postgresql

run docker container

apichipper

run app in terminal# hava

hava's People

Watchers

 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.