Skip to content

Commit

Permalink
fix: change port to 5069
Browse files Browse the repository at this point in the history
  • Loading branch information
Yag000 committed Aug 27, 2023
1 parent a81dd4a commit 1de7057
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DATABASE_URL="postgres://postgres:password@localhost:5432/newsletter"
DATABASE_URL="postgres://postgres:password@localhost:5069/newsletter"
2 changes: 1 addition & 1 deletion configuration.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
application_port: 8000
database:
host: "127.0.0.1"
port: 5432
port: 5069
username: "postgres"
password: "password"
database_name: "newsletter"
2 changes: 1 addition & 1 deletion scripts/init_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ DB_PASSWORD="${POSTGRES_PASSWORD:=password}"
# Check if a custom database name has been set, otherwise default to 'newsletter'
DB_NAME="${POSTGRES_DB:=newsletter}"
# Check if a custom port has been set, otherwise default to '5432'
DB_PORT="${POSTGRES_PORT:=5432}"
DB_PORT="${POSTGRES_PORT:=5069}"
# Launch postgres using Docker
docker run -e POSTGRES_USER=${DB_USER} -e POSTGRES_PASSWORD=${DB_PASSWORD} -e POSTGRES_DB=${DB_NAME} -p "${DB_PORT}":5432 -d postgres postgres -N 1000
# ^ Increased maximum number of connections for testing purposes
Expand Down
2 changes: 1 addition & 1 deletion src/startup.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::net::TcpListener;

use actix_web::{dev::Server, web, App, HttpServer};
use actix_web::{dev::Server, HttpServer, App, web};

use crate::routes::{health_check, subscribe};

Expand Down

0 comments on commit 1de7057

Please sign in to comment.