Deployment 将ftp部署与load grunt任务一起使用会导致错误
我使用Deployment 将ftp部署与load grunt任务一起使用会导致错误,deployment,ftp,gruntjs,Deployment,Ftp,Gruntjs,我使用加载grunt任务将Gruntfile拆分为多个文件,但在使用ftp部署时似乎出现了错误。我尝试了一些不同的方法,但我认为“ftp部署”中的连字符(-)可能会导致问题 我得到以下错误: Running "ftp-deploy:theme" (ftp-deploy) task Verifying property ftp-deploy.theme exists in config...ERROR >> Unable to process task. Warning: Requir
加载grunt任务
将Gruntfile拆分为多个文件,但在使用ftp部署时似乎出现了错误。我尝试了一些不同的方法,但我认为“ftp部署”中的连字符(-)可能会导致问题
我得到以下错误:
Running "ftp-deploy:theme" (ftp-deploy) task
Verifying property ftp-deploy.theme exists in config...ERROR
>> Unable to process task.
Warning: Required config property "ftp-deploy.theme" missing. Use --force to continue.
运行时:
grunt "ftp-deploy:theme" --verbose
我的ftp部署脚本如下所示:
# FTP DEPLOY
# -------
module.exports =
'ftp-deploy':
theme:
auth:
host: 'host.com'
port: 21
authKey: 'key'
src: 'drupal/sites/all/themes/theme_name'
dest: 'www/host.com/sites/all/themes/theme_name'
我试着运行它,但没有将它嵌入到“主题:”对象中,它可以工作,但本质上不是我想要做的,因为我有不同的文件夹要传输
有什么解决办法吗?我自己找到了答案
'ftp-deploy':
当然不应该包括在文件中