Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 Heroku部署需要很长时间_Ruby On Rails 4_Heroku_Deployment_React On Rails - Fatal编程技术网

Ruby on rails 4 Heroku部署需要很长时间

Ruby on rails 4 Heroku部署需要很长时间,ruby-on-rails-4,heroku,deployment,react-on-rails,Ruby On Rails 4,Heroku,Deployment,React On Rails,最近,我们在Rails应用程序中引入了React。添加react后,由于资产预编译,部署需要很长时间,大约需要半小时才能完成 有任何加快部署速度的建议吗?尝试在本地编译您的资产,并推送到heroku 请遵循以下步骤: 运行命令:RAILS\u ENV=production-rake-assets:precompile 将所有编译好的文件连同menifest文件一起推送到heroku

最近,我们在Rails应用程序中引入了React。添加react后,由于资产预编译,部署需要很长时间,大约需要半小时才能完成


有任何加快部署速度的建议吗?

尝试在本地编译您的资产,并推送到heroku

请遵循以下步骤:

  • 运行命令:
    RAILS\u ENV=production-rake-assets:precompile

  • 将所有编译好的文件连同menifest文件一起推送到heroku