diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 2215f50f..d3898738 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -8,14 +8,12 @@ services: MYSQL_PASSWORD: ukC2ZkcG_ZTeb MYSQL_ADDR: mysql MYSQL_DB: yearning - SECRET_KEY: UkkKAdwHG7xXuRPt + SECRET_KEY: dbcjqheupqjsuwsm IS_DOCKER: is_docker ports: - 8000:8000 # 首次使用请先初始化 - #command: /bin/bash -c "./Yearning install" - #volumes: - # - ./conf.toml:/opt/conf.toml + command: /bin/bash -c "./Yearning install && ./Yearning run" depends_on: - mysql restart: always diff --git a/src/service/migrate.go b/src/service/migrate.go index b10240ac..aafc9432 100644 --- a/src/service/migrate.go +++ b/src/service/migrate.go @@ -62,7 +62,6 @@ func Migrate() { return } } - _ = model.DB().AutoMigrate(&model.CoreAccount{}) _ = model.DB().AutoMigrate(&model.CoreDataSource{}) _ = model.DB().AutoMigrate(&model.CoreGlobalConfiguration{})