整理初始菜单sql

This commit is contained in:
xxqfamous 2023-05-29 18:18:00 +08:00
parent 14df764275
commit 4bd3d98021
3 changed files with 6891 additions and 2 deletions

View File

@ -2,7 +2,7 @@
bash -l -c "source /etc/profile.d/rvm.sh" bash -l -c "source /etc/profile.d/rvm.sh"
export PATH=/usr/local/rvm/gems/ruby-2.4.5/bin:/usr/local/rvm/gems/ruby-2.4.5@global/bin:/usr/local/rvm/rubies/ruby-2.4.5/bin:$PATH export PATH=/usr/local/rvm/gems/ruby-2.4.5/bin:/usr/local/rvm/gems/ruby-2.4.5@global/bin:/usr/local/rvm/rubies/ruby-2.4.5/bin:$PATH
bash -c "RAILS_ENV=production rails db:create" bash -c "RAILS_ENV=production rails db:create"
bash -c "RAILS_ENV=production bundle exec rake sync_table_structure:import_csv" #bash -c "RAILS_ENV=production bundle exec rake sync_table_structure:import_csv"
bash -c "RAILS_ENV=production rails db:migrate" bash -c "RAILS_ENV=production rails db:migrate"
#bash -c "rm -f tmp/pids/server.pid && RAILS_ENV=production rails s -p 4000 -b '0.0.0.0'" #bash -c "rm -f tmp/pids/server.pid && RAILS_ENV=production rails s -p 4000 -b '0.0.0.0'"
bash -c "RAILS_ENV=production puma -C config/puma.rb" bash -c "RAILS_ENV=production puma -C config/puma.rb"

6883
db/init.sql Normal file

File diff suppressed because one or more lines are too long

View File

@ -6,10 +6,12 @@ networks:
services: services:
mysql: mysql:
image: mysql:5.7.17 image: mysql:5.7.17
container_name: gitlink-mysql
command: --sql-mode="" command: --sql-mode=""
restart: always restart: always
volumes: volumes:
- ./data/mysql:/var/lib/mysql - /data/mysql:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/forgeplus-init.sql
ports: ports:
- "13306:3306" - "13306:3306"
environment: environment:
@ -47,6 +49,7 @@ services:
web: web:
image: gitlink-ubuntu20.04:latest image: gitlink-ubuntu20.04:latest
container_name: gitlink-web
build: build:
context: ./ context: ./
dockerfile: Dockerfile dockerfile: Dockerfile
@ -66,6 +69,9 @@ services:
tty: true tty: true
volumes: volumes:
- ./bin/start.sh:/start.sh - ./bin/start.sh:/start.sh
- /data/webguazai/publicfiles:/home/pdl/forgeplus/public/files
- /data/webguazai/publicavatars:/home/pdl/forgeplus/public/images/avatars
- /data/webguazai/files:/home/pdl/forgeplus/files
ports: ports:
- "4000:4000" - "4000:4000"
depends_on: depends_on: