Skip to content

Commit

Permalink
refactor: upgrade postgresql to version 12
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-roque committed Jan 7, 2021
1 parent 6ea5032 commit 4f9cc26
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker-compose.dev.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
database-service:
image: postgres:10
image: postgres:12
container_name: app-database
environment:
- POSTGRES_DB=reactnest
Expand Down
2 changes: 2 additions & 0 deletions entrypoint-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ echo "****** [DOCKER] ****** [CONFIGURING PROJECT] ******"
cp docker-compose.dev.example docker-compose.yml

docker-compose up -d && cd ./web-app && npm start

docker exec -t app-database bash -i -c 'psql -U reactnest_user -d reactnest -c "CREATE SCHEMA IF NOT EXISTS reactnest;"'
4 changes: 3 additions & 1 deletion entrypoint-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ echo "****** [DOCKER] ****** [CONFIGURING PROJECT] ******"

cp docker-compose.prod.example docker-compose.yml

docker-compose up
docker-compose up -d

docker exec -t app-database bash -i -c 'psql -U reactnest_user -d reactnest -c "CREATE SCHEMA IF NOT EXISTS reactnest;"'
2 changes: 1 addition & 1 deletion web-app/src/modules/auth/auth.routes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LoginPage } from './pages/Login/login.page';
import { LoginPage } from './pages/login/login.page';

export const routesAuth = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export default function Banner() {
<span role="img" aria-labelledby="tower">
🗼
</span>
A starter project template with (Ngnix, ReactJS, Redux, Redux Thunk, React Router, AdonisJS, PostgreSQL,
Docker, PM2) + (Code Style, Conventional Changelog with Commitlint, Husky, Git CZ)
A starter project template with (Ngnix, ReactJS, Redux, Redux Thunk, React Router, NestJS, TypeORM, PostgreSQL, Docker, PM2) + (Code Style, Conventional Changelog with Commitlint, Husky, Git CZ)
</Typography>
<div className={classes.buttons}>
<Grid container spacing={2} justify="center">
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/modules/home/home.routes.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lazy } from 'react'

const HomePage = lazy(() => import('./pages/Home/home.page'))
const HomePage = lazy(() => import('./pages/home/home.page'))

export const routesHome = [
{
Expand Down

0 comments on commit 4f9cc26

Please sign in to comment.