filestash初识

https://github.com/mickael-kerjean/filestash

https://www.filestash.app/2018/05/31/release-note-v0.1/

https://www.filestash.app/docs/

自己本地装好像只支持docker

https://www.filestash.app/docs/install-and-upgrade/#requirement

启动后

http://127.0.0.1:8334

后来研究了下,docker里面只是编译好的文件

然后就查阅了相关信息,在git上找到,可以通过在docker容器 里面编译

https://github.com/mickael-kerjean/filestash/issues/368

https://nodejs.org/zh-cn/download/releases/

https://github.com/mickael-kerjean/filestash/blob/master/CONTRIBUTING.md#building-from-source

# Download the source
git clone https://github.com/mickael-kerjean/filestash
cd filestash

# Install dependencies
npm config set registry https://registry.npm.taobao.org
npm install # frontend dependencies
make build_init # install the required static libraries
mkdir -p ./dist/data/state/
cp -R config ./dist/data/state/

# Create the build
make build_frontend
make build_backend

# Run the program
./dist/filestash
1  npm -v
    2  npm install -g npm@7.0.8
    3  npm -v
    4  npm install
    5  make build_init
    6   
    7  make build_frontend
    8  npm rebuild node-sass
    9  npm rebuild node-sass
   10  make build_backend
   11  make build_backend
   12  go build -o dist/filestash server/main.go
   13  make build_init
   14  mkdir -p ./dist/data/state/
   15  cp -R config ./dist/data/state/
   16  make build_frontend
   17  make build_backend
   18  cd server/plugin/
   19  ls
   20  cd plg_image_light/
   21  ls
   22  sh install.sh 
   23  cd deps/
   24  ls
   25  sh create_libtranscode.sh
   26  sh create_libresize.sh 
   27  cd
   28  ll
   29  ls
   30  cd /var/app/
   31  ls
   32  make build_backend
   33  go mod tidy
   34  make build_init
   35  mkdir -p ./dist/data/state/
   36  cp -R config ./dist/data/state/
   37  make build_frontend
   38  make build_backend
   39  /dist/filestash
   40  ll
   41  ./dist/filestash

本地运行

main.go

添加一行

index.go

删除一行

将上面docker启动后里面的静态文件拷贝出来。只要public目录

拷贝到main.go添加行指定的目录下面

复制覆盖这

然后就可以本地启动了

go run server/main.go

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值