我无法部署中间人项目

I cant deploy the middleman project

这是 gem 文件

source 'https://rubygems.org'

gem 'middleman', '~> 4.2'
gem 'middleman-autoprefixer', '~> 2.7'
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby, :x64_mingw]
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw, :x64_mingw]
gem "middleman-blog", "~> 4.0"
# Other gems
gem 'middleman-deploy', '~> 2.0.0.pre.alpha'
gem 'middleman-syntax', '~> 3.0'
gem 'redcarpet', '~> 3.4'
gem 'nokogiri', '~> 1.8', '>= 1.8.2'
gem 'builder', '~> 3.2', '>= 3.2.3'
gem 'bootstrap', '~> 4.0.0.beta2.1'
gem 'font-awesome-sass', '~> 4.7.0'
gem 'rails-assets-jquery', source: 'https://rails-assets.org'
gem 'rails-assets-popper.js', source: 'https://rails-assets.org'
gem 'rails-assets-modernizr', source: 'https://rails-assets.org'

我该如何解决这个问题!我无法部署这里有什么问题!

lol :smile: 你必须 build before

    middleman build
    middleman deploy

作为附加说明(因为我没有足够的声誉来发表评论)— 您可以配置 middleman-deploy 以在每次部署时自动构建站点,方法是在 [=12] 中添加 deploy.build_before = true =],像这样:

activate :deploy do |deploy|
  deploy.deploy_method = :git
  deploy.remote = 'https://github.com/your-username/your-repository.git'
  deploy.branch = 'main' # (or whatever your branch is; presumably you've already got this set up)
  deploy.build_before = true
end