Skip to content

Commit

Permalink
fix(start): create data folder on start
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotsx committed Feb 6, 2024
1 parent 3b8ddaf commit 5c0c416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/assets/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
ports:
- 6379:6379
volumes:
- redisdata:/data
- ./data/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
Expand Down Expand Up @@ -225,6 +225,3 @@ networks:
name: runtipi_tipi_main_network
socket_proxy:
name: runtipi_socket_proxy

volumes:
redisdata:
1 change: 1 addition & 0 deletions src/utils/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub fn copy_system_files() -> Result<(), Error> {

// Create the base folders
fs::create_dir_all(root_folder.join("apps"))?;
fs::create_dir_all(root_folder.join("data"))?;
fs::create_dir_all(root_folder.join("app-data"))?;
fs::create_dir_all(root_folder.join("state"))?;
fs::create_dir_all(root_folder.join("repos"))?;
Expand Down

0 comments on commit 5c0c416

Please sign in to comment.