Giter Club home page Giter Club logo

Comments (9)

staugur avatar staugur commented on June 19, 2024

管理员用户?

from sapic.

ruix156 avatar ruix156 commented on June 19, 2024

管理员用户?

就是这个命令啊
docker-compose exec webapp flask sa create -u 管理员账号 -p 密码 --isAdmin

from sapic.

staugur avatar staugur commented on June 19, 2024

站点管理403说明没权限,404说明没登录。
提示这个的时候状态是登录的吗?
是不是启动了2个及以上进程?是的话,设置下固定的secretkey再试试

from sapic.

ruix156 avatar ruix156 commented on June 19, 2024

直接修改src/config.py然后再
docker-compose up -d ?
我发现好像就是登录cookies的原因,
有时候能打开,但是打开其他功能就又让登录了
Ps看了确实是两个进程

from sapic.

staugur avatar staugur commented on June 19, 2024

那就是了,docker-compose里面,webapp那个先固定secretkey,设置环境变量,或者.cfg文件写( https://picbed.rtfd.vip/zh_CN/latest/install.html#picbed-config ),
再up

from sapic.

staugur avatar staugur commented on June 19, 2024

这个问题确实一直存在,最近才意识到,已经在dev最新代码中修改,以往版本可以通过设置SecretKey(环境变量picbed_secretkey)解决

from sapic.

ruix156 avatar ruix156 commented on June 19, 2024

那我可以把整个目录删了,重新git,然后up了吧?

from sapic.

staugur avatar staugur commented on June 19, 2024

git clone -b dev https://github.com/staugur/picbed

from sapic.

ruix156 avatar ruix156 commented on June 19, 2024

试了几遍都没问题了,谢谢大佬了

from sapic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.