Skip to content

Commit

Permalink
Fix directory path in docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Freika committed Oct 5, 2024
1 parent 1ec423f commit fb2468a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/tmp/imports/watched/*
!/tmp/imports/watched/
!/tmp/imports/watched/.keep
!/tmp/imports/watched/put-your-files-here.txt
!/tmp/imports/watched/put-your-directory-here.txt


/public/assets
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ To expose the watcher functionality to the user, a new directory `/tmp/imports/w
+ - watched:/var/app/tmp/watched

...

volumes:
db_data:
gem_cache:
shared_data:
public:
+ watched:
```

### Changed
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
volumes:
- gem_cache:/usr/local/bundle/gems
- public:/var/app/public
- watched:/var/app/tmp/watched
- watched:/var/app/tmp/imports/watched
networks:
- dawarich
ports:
Expand Down Expand Up @@ -69,7 +69,7 @@ services:
volumes:
- gem_cache:/usr/local/bundle/gems
- public:/var/app/public
- watched:/var/app/tmp/watched
- watched:/var/app/tmp/imports/watched
networks:
- dawarich
stdin_open: true
Expand Down Expand Up @@ -109,3 +109,4 @@ volumes:
gem_cache:
shared_data:
public:
watched:
4 changes: 4 additions & 0 deletions tmp/imports/watched/put-your-directory-here.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The /tmp/imports/watched/USER@EMAIL.TLD directory is watched by Dawarich. Any files you put in this directory under a directory names with the email of the user you want to import the file for will be imported into the database.

For example, if you want to import a file for the user with the email address "email@dawarich.app", you would place the file in the directory /tmp/imports/watched/email@dawarich.app. The file you place in this directory should be a GeoJSON or GPX file that contains the data you want to import. Dawarich automatically scans directories for new files every 60 minutes, on 0 minute of every hour, so you should see the file imported into the database within 1 hour of placing it in the directory.

0 comments on commit fb2468a

Please sign in to comment.