Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadhabibi14 committed Jan 25, 2024
1 parent b833e11 commit 4a454b9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 25 deletions.
12 changes: 12 additions & 0 deletions scripts/bacaku.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Bacaku

[Service]
User=root
Type=simple
Restart=on-failure
WorkingDirectory=/home/root_admin/bacaku
ExecStart=/home/root_admin/bacaku/start_prod.sh

[Install]
WantedBy=multi-user.target
17 changes: 0 additions & 17 deletions scripts/gunicorn.service

This file was deleted.

8 changes: 1 addition & 7 deletions scripts/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ server {

server_name 193.111.124.179;

location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/root_admin/bacaku;
}

gzip on;

gzip_types
Expand All @@ -38,8 +33,7 @@ server {
gzip_buffers 32 8k;

location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
2 changes: 1 addition & 1 deletion start_prod.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

gunicorn --bind 0.0.0.0:8000 perpus.wsgi
python manage.py runserver 0.0.0.0:8000 --noreload

0 comments on commit 4a454b9

Please sign in to comment.