Giter Site home page Giter Site logo

dujiaoka-docker's Introduction

Typing SVG

github-snake

About me

Master's student at UPenn, majoring in Computer Information Science and Systems Engineering. Passionate about web development, machine learning, and open-source contributions.


❝“It should be noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter.”— Nathaniel S. Borenstein ❞

Skills

  • Languages: JavaScript Badge Python Badge Java C++ Badge Go Badge
  • Frameworks: React Badge Next.js Badge Vue.js Badge Expo Badge Spring Boot Badge FastAPI Badge Node.js Badge
  • Tools: Docker Badge Terraform Badge Git Badge Amazon AWS Badge

Stats

Github Profile

dujiaoka-docker's People

Contributors

actions-user avatar apocalypsor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dujiaoka-docker's Issues

详细请教一下带epusdt的部署方式

xxx

其他均照着教程做,epusdt也部署了,访问epusdt域名能显示正常hello,这个数据库是缺少了么?我直接用的docker-compose里的数据库(与发卡网站同一个数据库)。

使用luna主题时存在的问题

大佬您好!

我在使用luna主题的时候有如下2个问题,可否帮忙看下怎样可以调整?

1, 产品公告和选择分类的2个区域不是对齐的,详见下图
image

  1. 当我在商品里想加个自定义的表单时应用后报错:
    其他输入框配置 内容为:qq_account=QQ账号=true
image

但我尝试用下拉菜单又能正常工作。

希望大佬百忙之中可抽空帮看看,谢谢!

報錯

LogicException : Unable to prepare route [api/user] for serialization. Uses Closure.

at /dujiaoka/vendor/laravel/framework/src/Illuminate/Routing/Route.php:917
913| */
914| public function prepareForSerialization()
915| {
916| if ($this->action['uses'] instanceof Closure) {

917| throw new LogicException("Unable to prepare route [{$this->uri}] for serialization. Uses Closure.");
918| }
919|
920| $this->compileRoute();
921|

Exception trace:

1 Illuminate\Routing\Route::prepareForSerialization()
/dujiaoka/vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteCacheCommand.php:62

2 Illuminate\Foundation\Console\RouteCacheCommand::handle()
/dujiaoka/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36

Please use the argument -v to see more details.
/usr/lib/python3.10/site-packages/supervisor/options.py:474: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
self.warnings.warn(

升级到最新的镜像导致500

进入到数据库中,并输入

use dujiaoka;
alter table goods add `gd_description` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品描述';
alter table goods add `gd_keywords` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品关键字';
alter table carmis add `is_loop` tinyint(1) NOT NULL DEFAULT '0' COMMENT '循环卡密 1是 0否';

第一行的dujiaoka改成你自己的数据库名

当使用 Arm64 版本的时候,出现 exec /entrypoint: exec format error 错误

我的部分 docker-compose.yml

version: "3"

services:
  faka:
    # image: ghcr.io/apocalypsor/dujiaoka:latest
    # 国内服务器可以用 hkccr.ccs.tencentyun.com/apocalypsor/dujiaoka:latest
    image: ghcr.io/apocalypsor/dujiaoka:arm
    container_name: faka
    environment:
        - INSTALL=false
        # - INSTALL=true
        # - MODIFY=true
    volumes:
      - ./env.conf:/dujiaoka/.env
      - ./uploads:/dujiaoka/public/uploads
      - ./storage:/dujiaoka/storage
      - ./favicon.ico:/dujiaoka/public/favicon.ico:ro
      - ./favicon.ico:/dujiaoka/public/assets/style/favicon.ico:ro
      - ./default.png:/dujiaoka/public/assets/common/images/default.jpg:ro

报错日志内容:

➜  dujiaoka sudo docker compose up  
[+] Running 3/0
 ✔ Container faka-redis  Created                                              0.0s 
 ✔ Container faka-data   Created                                              0.0s 
 ✔ Container faka        Recreated                                            0.1s 
Attaching to faka, faka-data, faka-redis
faka-redis  | 1:C 09 Mar 2024 17:51:52.845 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
faka-redis  | 1:C 09 Mar 2024 17:51:52.847 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
faka-redis  | 1:C 09 Mar 2024 17:51:52.847 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=1, just started
faka-redis  | 1:C 09 Mar 2024 17:51:52.847 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
faka-redis  | 1:M 09 Mar 2024 17:51:52.848 * monotonic clock: POSIX clock_gettime
faka-redis  | 1:M 09 Mar 2024 17:51:52.848 * Running mode=standalone, port=6379.
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * Server initialized
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * Loading RDB produced by version 7.2.4
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * RDB age 44 seconds
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * RDB memory usage when created 0.86 Mb
faka-redis  | 1:M 09 Mar 2024 17:51:52.849 * Done loading RDB, keys loaded: 2, keys expired: 0.
faka-redis  | 1:M 09 Mar 2024 17:51:52.850 * DB loaded from disk: 0.001 seconds
faka-redis  | 1:M 09 Mar 2024 17:51:52.850 * Ready to accept connections tcp
faka-data   | 2024-03-09 17:51:52+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.3+maria~focal started.
faka        | exec /entrypoint: exec format error
faka-data   | 2024-03-09 17:51:53+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
faka-data   | 2024-03-09 17:51:53+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.3+maria~focal started.
faka-data   | 2024-03-09 17:51:53+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
faka-data   | 2024-03-09 17:51:53 0 [Note] mariadbd (server 10.7.3-MariaDB-1:10.7.3+maria~focal) starting as process 1 ...
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Number of transaction pools: 1
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Using ARMv8 crc32 + pmull instructions
faka-data   | 2024-03-09 17:51:53 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Using Linux native AIO
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Completed initialization of buffer pool
faka exited with code 0
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: 128 rollback segments are active.
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Creating shared tablespace for temporary tables
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: 10.7.3 started; log sequence number 2836692; transaction id 4276
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
faka-data   | 2024-03-09 17:51:53 0 [Note] Plugin 'FEEDBACK' is disabled.
faka-data   | 2024-03-09 17:51:53 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
faka-data   | 2024-03-09 17:51:53 0 [Note] Server socket created on IP: '0.0.0.0'.
faka-data   | 2024-03-09 17:51:53 0 [Note] Server socket created on IP: '::'.
faka-data   | 2024-03-09 17:51:53 0 [Note] mariadbd: ready for connections.
faka-data   | Version: '10.7.3-MariaDB-1:10.7.3+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
faka-data   | 2024-03-09 17:51:53 0 [Note] InnoDB: Buffer pool(s) load completed at 240309 17:51:53
faka exited with code 1
faka exited with code 1
faka exited with code 1
faka exited with code 1

我的服务器架构:

➜  dujiaoka uname -a        
Linux instance-20231211-2000 5.15.0-1049-oracle #55-Ubuntu SMP Mon Nov 20 19:53:49 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

按照步骤操作提示500错误

按照文档教程操作 到docker-compose up -d这一步,
Creating faka-data ... done Creating faka ... done Creating faka-redis ... done
BaiduShurufa_2022-3-7_21-15-17.png
打开网页提示
500Server Error
BaiduShurufa_2022-3-7_21-18-52.png

Arm 版本即使 env.conf 指定后台 HTTPS,form 表仍然是 HTTP

我的 env.conf,已对敏感信息使用 [REDACTED] 进行消除

APP_NAME="[REDACTED]"
APP_ENV=local
APP_KEY=[REDACTED]
APP_DEBUG=false
APP_URL=https://[REDACTED].com

LOG_CHANNEL=stack

# 数据库配置
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=dujiaoka
DB_USERNAME=dujiaoka
DB_PASSWORD=[REDACTED]

# redis配置
REDIS_HOST=redis
REDIS_PASSWORD=
REDIS_PORT=6379

BROADCAST_DRIVER=log
SESSION_DRIVER=file
SESSION_LIFETIME=120


# 缓存配置
# file为磁盘文件  redis为内存级别
# redis为内存需要安装好redis服务端并配置
CACHE_DRIVER=redis

# 异步消息队列
# sync为同步  redis为异步
# 使用redis异步需要安装好redis服务端并配置
QUEUE_CONNECTION=redis

# 后台语言
## zh_CN 简体中文
## zh_TW 繁体中文
## en    英文
DUJIAO_ADMIN_LANGUAGE=zh_CN

# 后台登录地址
ADMIN_ROUTE_PREFIX=/admin

# 是否开启https (前端开启了后端也必须为true)
# 后台登录出现0err或者其他登录异常问题,大概率是开启了https而后台没有开启,把下面的false改为true即可
ADMIN_HTTPS=true

能正常执行购买,但是后台无法新增任何数据。我之前在 x86 机器部署的完全相同的站点无任何问题,问题在迁移到 ARM 机器后才出现。

CleanShot 2024-04-22 at 20 16 23@2x

CONSOLE 报错

Mixed Content: The page at 'https://[REDACTED].com/admin/goods-group/create' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://[REDACTED].com/admin/goods-group'. This request has been blocked; the content must be served over HTTPS.

CleanShot 2024-04-22 at 20 18 43@2x

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.