Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

带哥,创建静态资源文件时b*.min.css文件不存在 #32

Open
tuciyuan opened this issue Feb 2, 2020 · 4 comments
Open

带哥,创建静态资源文件时b*.min.css文件不存在 #32

tuciyuan opened this issue Feb 2, 2020 · 4 comments

Comments

@tuciyuan
Copy link

tuciyuan commented Feb 2, 2020

[root@VM_0_14_centos www.tuciy.com]# php bin/console assetic:dump --env=prod
generated new assets version: 5e36f436
Dumping all prod assets.
Debug mode is off.

00:09:26 [file+] /www/wwwroot/www.tuciy.com/app/../web/build/css/de6acdf.css
00:09:26 ERROR [console] Error thrown while running command "assetic:dump --env=prod". Message: "The source file "/www/wwwroot/www.tuciy.com/app/../web/assets/lib/bootstrap/dist/css/bootstrap.min.css" does not exist." ["exception" => RuntimeException { …},"command" => "assetic:dump --env=prod","message" => "The source file "/www/wwwroot/www.tuciy.com/app/../web/assets/lib/bootstrap/dist/css/bootstrap.min.css" does not exist."]

In FileAsset.php line 62:

The source file "/www/wwwroot/www.tuciy.com/app/../web/assets/lib/bootstrap/dist/css/bootstrap.min.css" does not exist.

assetic:dump [--forks FORKS] [--watch] [--force] [--period PERIOD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] [<write_to>]
QQ浏览器截图20200203001205

@tuciyuan
Copy link
Author

tuciyuan commented Feb 2, 2020

还有第四行Debug mode is off为什么不是on?这位带哥截图里就是on
#10

@tuciyuan
Copy link
Author

tuciyuan commented Feb 2, 2020

之后尝试进入目录app/../web/assets/lib/bootstrap/dist/css/手动上传一个.css文件,但是进不去找不到这个目录,这个bootstrap是个“失效链接”?
QQ浏览器截图20200203002431

@jjsty1e
Copy link
Member

jjsty1e commented Feb 6, 2020

需要执行yarn install 来安装外部的前端依赖

@wuyu8512
Copy link

wuyu8512 commented Feb 6, 2020

需要执行yarn install来安装外部的前端依赖

作者好,我今天尝试了一下部署成功了,想问一下,头像文件本意就是放在upload里面的吗,我发现外面有个avatar文件夹,而upload不存在avatar文件夹,需要手动建

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants