Skip to content

mehmetron/hava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages