Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
 Profile images nginx guide update.
  • Loading branch information
twilightty committed Sep 1, 2023
1 parent 1f03106 commit 120cc3c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ python3 manage.py runserver 0.0.0.0:8000

1. (WSL) có thể tải ứng dụng Terminal trong Windows Store
2. (WSL) mỗi lần mở ubuntu, các bạn cần chạy lệnh sau để mariadb khởi động: `sudo service mysql restart` (tương tự cho một số service khác như memcached, celery)
3. Sau khi cài đặt, các bạn chỉ cần activate virtual env và chạy lệnh runserver là ok.
3. Sau khi cài đặt, các bạn chỉ cần activate virtual env và chạy lệnh runserver là ok
4. Đối với nginx, sau khi config xong theo guide của DMOJ, bạn cần thêm location như sau để sử dụng được tính năng profile image, thay thế `path/to/oj` thành đường dẫn nơi bạn đã clone source code.

```
location /profile_images/ {
root /path/to/oj;
}
```

```jsx
. dmojsite/bin/activate
Expand Down

0 comments on commit 120cc3c

Please sign in to comment.