This commit is contained in:
Untone 2024-09-23 17:43:50 +03:00
parent 5f0775ab8f
commit 685698bc66
2 changed files with 4 additions and 7 deletions

View File

@ -23,11 +23,4 @@ jobs:
with: with:
branch: 'main' branch: 'main'
git_remote_url: 'ssh://dokku@v2.discours.io:22/quoter' git_remote_url: 'ssh://dokku@v2.discours.io:22/quoter'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Push to dokku
uses: dokku/github-action@master
with:
branch: 'dev'
git_remote_url: 'ssh://dokku@staging.discours.io:22/quoter'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

View File

@ -193,6 +193,10 @@ impl AppState {
.map(|(name, _ext)| name) .map(|(name, _ext)| name)
.unwrap_or(filename_with_extension); // Если расширение отсутствует, возвращаем оригинальное имя .unwrap_or(filename_with_extension); // Если расширение отсутствует, возвращаем оригинальное имя
if filename.is_empty() {
eprintln!("пустое имя файла");
}
// Проверяем, существует ли файл на Storj S3 // Проверяем, существует ли файл на Storj S3
match check_file_exists(&self.s3_client, &self.s3_bucket, filename) match check_file_exists(&self.s3_client, &self.s3_bucket, filename)
.await .await