Comments (11)
运行命令行 php artisan migrate:fresh --seed
即可自动生成新的数据库
from card-system.
运行命令行
php artisan migrate:fresh --seed
即可自动生成新的数据库
我进入docker内执行构建数据库相关命令无回显也没有新的表增加
from card-system.
那你执行php命令没有回显我也没办法啊.. 你docker难不成没装php?
from card-system.
我是通过Docker Compose管理多个容器,分为nginx php5.6 php7.2 mysql四块,没都在一个容器内。。。进入php7.2能正常执行php命令,但是执行生成数据库的命令后没有表增加,host,port,username,password,dbname均正确。
from card-system.
那是否可以把执行的错误输出发一下
from card-system.
root@xxxxx:~/docker/www/xxxxx.cc# docker exec -it 42xxxxxfab66 bash
root@42xxxxxfab66:/var/www/html# cd xxxxx.cc/
root@42xxxxxfab66:/var/www/html/xxxxx.cc# php artisan migrate:fresh --seed
root@42xxxxxfab66:/var/www/html/xxxxx.cc# exit
exit
没输出任何信息 很蛋疼
PHP 7.2.7 (cli) (built: Nov 29 2018 19:01:46) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.7, Copyright (c) 2002-2018, by ionCube Ltd.
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies
from card-system.
可以运行一下下面的命令, 如果依然没有输出请检查你的php环境是否完整
ubuntu@Windy:/mnt/d/xx/card$ php --version
PHP 7.2.10 (cli) (built: Oct 20 2018 18:54:13) ( NTS )
...
ubuntu@Windy:/mnt/d/xx/card$ php artisan
Laravel Framework 5.5.44
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
....
from card-system.
看起来是我环境不完整 我修改一下Dockerfile重新构建一下镜像
from card-system.
您好,我是win环境,能否给个sql文件,我导入一下
from card-system.
命令行执行php artisan migrate --seed
会自动创建数据库
from card-system.
我是windows的电脑。本地先测试一下系统,没办法执行命令行,能否直接分享个sql文件
from card-system.
Related Issues (20)
- 有没有会对接epusdt的大佬来一个
- 有没有分销功能? HOT 3
- 接口不存在 HOT 3
- 图片功能 HOT 1
- 安装出现问题,日志目录是空白的,求大佬解答
- 请问有手续费功能吗? HOT 1
- 有办法在Windows下安装吗 HOT 5
- 想询问一下关于material主题的一些问题【困扰很久】 HOT 14
- 系统后台前端有没有编译前的源码 HOT 1
- 能否提供一个网站迁移的方案
- 如何在公告位置加入自定义HTML代码 HOT 1
- 卡密 HOT 1
- 支付宝钱没有收到 HOT 2
- 风大麻烦帮忙看一下支付时出现《支付失败请稍后再试》非常感谢!!! HOT 7
- 新站500未知错误,前后端都无法进入, HOT 2
- 添加epusdt接口后前台不显示 HOT 1
- 卡密首位为0时自动去零bug
- 我不想使用宝塔,能否提供其他途径的安装教程,一个一个装需要的环境也可以,感激不尽 HOT 1
- 这个开源项目是停更了吗? HOT 1
- 订单设置-订单有效期貌似不能修改
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from card-system.