Comments (6)
部署方式
version: "2"
services:
tipask:
image: richarvey/nginx-php-fpm:1.7.4
container_name: tipask
restart: always
environment:
- DB_HOST=db
- DB_DATABASE=tipaskx
- DB_USER=tipaskdb
- DB_PASSWORD=password1
- TZ = 'Asia/Shanghai'
volumes:
- ./config:/root/.composer
- ./tipask:/var/www/html # clone code from github
- ./nginx:/etc/nginx/sites-enabled
- ./php:/usr/local/etc/php
ports:
- '8008:80'
links:
- db
- xunsearch
db:
image: mysql:5.7
container_name: tipask-db
environment:
- MYSQL_DATABASE=tipaskx
- MYSQL_USER=tipaskdb
- MYSQL_PASSWORD=password1
- MYSQL_ROOT_PASSWORD=password1
volumes:
- db:/var/lib/mysql
restart: always
ports:
- 3306:3306
xunsearch:
image: hightman/xunsearch
container_name: xunsearch
#volumes:
# - search:/usr/local/xunsearch/data
restart: always
ports:
- 8383:8383
- 8384:8384
volumes:
db:
from tipask.
手动修改一下.env配置文件
MAIL_SENDMAIL=/usr/sbin/sendmail -bs
修改为
MAIL_SENDMAIL='/usr/sbin/sendmail -bs'
新版本php对env配置项读取作调整了不允许空格,下个版本处理一下。
from tipask.
奇怪,.env 没有这一项
APP_ENV=local
APP_DEBUG=true
APP_KEY=mnbl2zciiMg9qjFDaDzLAKIFUT2MR5Gv
DB_HOST=tipask-db
DB_PORT=3306
DB_DATABASE=tipaskx
DB_USERNAME=tipaskdb
DB_PASSWORD=password1
DB_PREFIX=ask_
from tipask.
如果不需要sendmail 命令行来发送邮件,先把sendmail去掉。
<div class="form-group sendmail @if ($errors->has('mail_sendmail')) has-error @endif">
<label for="mail_sendmail">SendMail命令配置</label>
<span class="text-muted">(设置SendMail命令配置)</span>
<input type="text" name="mail_sendmail" class="form-control " placeholder="/usr/sbin/sendmail -bs" value="{{ old('mail_sendmail',Setting()->get('mail_sendmail','/usr/sbin/sendmail -bs')) }}">
@if ($errors->has('mail_sendmail')) <p class="help-block">{{ $errors->first('mail_sendmail') }}</p> @endif
</div>
tipask/resources/views/admin/setting/email.blade.php 文件中去掉上面这一段代码,然后再保存。
from tipask.
我现在不用sendmail发送邮件,就是走普通的SMTP服务,前面也没选sendmail方式。注释这段代码后,问题依然存在。
from tipask.
看前面的错误提示, 在数组里插入了太多的额外的信息,下面是系统的env命令结果,已经包含在其中了,还有一些其他的信息,都不知道怎么来的?
scheme@scheme-virtual-machine:~/dock/my-tipask/tipask$ docker exec -it tipask bash
bash-4.4# env
DB_HOST=db
LUAJIT_LIB=/usr/lib
php_vars=/usr/local/etc/php/conf.d/docker-vars.ini
HOSTNAME=f4581309a5d8
TZ = 'Asia/Shanghai'
PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
GPG_KEYS=CBAF69F173A0FEA4B537F470D66C9593118BCCB6 F38252826ACD957EF380D39F2F7956BC5DA04B5D
NGINX_VERSION=1.16.0
DB_USER=tipaskdb
LUA_MODULE_VERSION=0.10.14
PHP_EXTRA_CONFIGURE_ARGS=--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi
PHP_ASC_URL=https://www.php.net/get/php-7.3.8.tar.xz.asc/from/this/mirror
PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2
LUAJIT_INC=/usr/include/luajit-2.1
PWD=/var/www/html
HOME=/root
PHP_LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie
DB_PASSWORD=password1
php_conf=/usr/local/etc/php-fpm.conf
PHP_INI_DIR=/usr/local/etc/php
PHP_URL=https://www.php.net/get/php-7.3.8.tar.xz/from/this/mirror
PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2
TERM=xterm
PHP_VERSION=7.3.8
DEVEL_KIT_MODULE_VERSION=0.3.0
SHLVL=1
fpm_conf=/usr/local/etc/php-fpm.d/www.conf
PHP_MD5=
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHP_SHA256=f6046b2ae625d8c04310bda0737ac660dc5563a8e04e8a46c1ee24ea414ad5a5
LD_PRELOAD=/usr/lib/preloadable_libiconv.so php
DB_DATABASE=tipaskx
_=/usr/bin/env
bash-4.4#
from tipask.
Related Issues (20)
- 怎么安装使用呢? HOT 5
- 新版tipask怎么整合ucenter用户 HOT 2
- 安装完成后在后台修改配置 会导致.env被覆盖
- 添加 travis.ci 自动单元测试
- 邮箱成功后仍然提示:您还未进行邮箱绑定 HOT 1
- 这个网站也是基于这个开发的吗? HOT 2
- [pr wanted]优化文件存储(头像、附件)的改进
- composer.lock的依赖文件地址失效 HOT 2
- 可不可以在回答问题的输入法里添加表情?
- 为什么没有图片本地化呢
- 后台首页报错 HOT 1
- 是否有开发api的计划 HOT 1
- 一鼓作气 把框架更新到 laravel 6 HOT 1
- 最新3.5.5版本安装正常,但是发表文章时出错,store时出现500内部错误
- 建议新增tag批量生成 HOT 1
- 求助,最新版本安装后出现下面报错
- Responsible Disclosure:Tipask PostAuth LFR HOT 1
- 平板访问竖屏状态下css错位,横屏则没问题;手机访问横屏状态下css错位,竖屏则没问题
- 安装到最后一步报错 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 tipask.