Skip to content

Commit

Permalink
feat: restructure folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar5526 committed Dec 28, 2023
1 parent c6ec31a commit 8f83a43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from flask import Flask, jsonify, request
from flask_httpauth import HTTPTokenAuth

from deployer import Deployer, DeploymentConfig
from sarthi.deployer import Deployer, DeploymentConfig

load_dotenv()

Expand Down
2 changes: 1 addition & 1 deletion server/deployer.py → server/sarthi/deployer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import subprocess
import typing

from utils import ComposeHelper, DeploymentConfig, NginxHelper
from .utils import ComposeHelper, DeploymentConfig, NginxHelper

logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions server/utils.py → server/sarthi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def _test_nginx_config(self):
def reload_nginx(self):
self._test_nginx_config()
subprocess.run(

["docker", "exec", "sarthi_nginx", "nginx", "-s", "reload"],
check=True,
)
Expand Down

0 comments on commit 8f83a43

Please sign in to comment.