You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.4 KiB

4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
2 years ago
  1. BINARY = weed
  2. SOURCE_DIR = .
  3. all: install
  4. .PHONY : clean debug_mount
  5. install:
  6. go install
  7. clean:
  8. go clean $(SOURCE_DIR)
  9. rm -f $(BINARY)
  10. debug_shell:
  11. go build -gcflags="all=-N -l"
  12. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- shell
  13. debug_mount:
  14. go build -gcflags="all=-N -l"
  15. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 mount -dir=~/tmp/mm -cacheCapacityMB=0 -filer.path=/ -umask=000
  16. debug_server:
  17. go build -gcflags="all=-N -l"
  18. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- server -dir=~/tmp/99 -filer -volume.port=8343 -s3 -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1
  19. debug_volume:
  20. go build -gcflags="all=-N -l"
  21. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- volume -dir=~/tmp/100 -port 8564 -max=30 -preStopSeconds=2
  22. debug_webdav:
  23. go build -gcflags="all=-N -l"
  24. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 webdav
  25. debug_s3:
  26. go build -gcflags="all=-N -l"
  27. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 s3
  28. debug_mq:
  29. go build -gcflags="all=-N -l"
  30. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 mq.broker
  31. debug_filer_copy:
  32. go build -gcflags="all=-N -l"
  33. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 filer.backup -filer=localhost:8888 -filerProxy -timeAgo=10h
  34. debug_filer_remote_sync_dir:
  35. go build -gcflags="all=-N -l"
  36. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 filer.remote.sync -filer="localhost:8888" -dir=/buckets/b2 -timeAgo=1h
  37. debug_filer_remote_sync_buckets:
  38. go build -gcflags="all=-N -l"
  39. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 filer.remote.sync -filer="localhost:8888" -createBucketAt=cloud1 -timeAgo=1h
  40. debug_master_follower:
  41. go build -gcflags="all=-N -l"
  42. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 master.follower
  43. debug_filer_sync:
  44. go build -gcflags="all=-N -l"
  45. dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./weed -- -v=4 filer.sync -a 192.168.2.7:8888 -b 192.168.2.7:8889 -isActivePassive -b.debug