#60: Fixed bug with current folder

This commit is contained in:
frikky
2020-06-15 18:11:59 +02:00
parent a7e7ca15e3
commit 7eac745d9d
3 changed files with 5 additions and 6 deletions
+4 -4
View File
@@ -2,13 +2,13 @@
ORG_ID=Shuffle ORG_ID=Shuffle
ENVIRONMENT_NAME=Shuffle ENVIRONMENT_NAME=Shuffle
# Different locations etc # Remote github config for first load
APP_DOWNLOAD_LOCATION=https://github.com/frikky/shuffle-apps # Remote location to download APP_DOWNLOAD_LOCATION=https://github.com/frikky/shuffle-apps
APP_DOWNLOAD_AUTH_USERNAME="" APP_DOWNLOAD_AUTH_USERNAME=""
APP_DOWNLOAD_AUTH_PASSWORD="" APP_DOWNLOAD_AUTH_PASSWORD=""
# Local location of your app directory. Can't use ~/ or ./ # Local location of your app directory. Can't use ~/
APP_HOTLOAD_LOCATION="shuffle-apps" APP_HOTLOAD_LOCATION=./shuffle-apps
# Other configs # Other configs
BACKEND_HOSTNAME=shuffle-backend BACKEND_HOSTNAME=shuffle-backend
-1
View File
@@ -5809,7 +5809,6 @@ func createFs(basepath, pathname string) (billy.Filesystem, error) {
// Fix the inner path here // Fix the inner path here
newpath := strings.ReplaceAll(path, pathname, "") newpath := strings.ReplaceAll(path, pathname, "")
fullpath := fmt.Sprintf("%s%s", basepath, newpath) fullpath := fmt.Sprintf("%s%s", basepath, newpath)
log.Printf("Fullpath: %s", fullpath)
switch mode := info.Mode(); { switch mode := info.Mode(); {
case mode.IsDir(): case mode.IsDir():
err = fs.MkdirAll(fullpath, 0644) err = fs.MkdirAll(fullpath, 0644)
+1 -1
View File
@@ -25,7 +25,7 @@ services:
- shuffle - shuffle
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ${APP_HOTLOAD_LOCATION}=/shuffle-apps # Local - ${APP_HOTLOAD_LOCATION}:/shuffle-apps
environment: environment:
- ORG_ID=${ORG_ID} - ORG_ID=${ORG_ID}
- DATASTORE_EMULATOR_HOST=shuffle-database:8000 - DATASTORE_EMULATOR_HOST=shuffle-database:8000