我计划使用 Ruby on Rails 在 dreamhost 上创建一个网站。在阅读 dreamhost 上的 wiki 时,我意识到我必须使用 svn 和 capistrano 将本地文件传输到服务器。Dreamhost 使用 Passenger 来部署我的应用程序。
谁能解释一下其中涉及的工作流程?
更多详细信息:根据 svn 上的 dreamhost wiki 页面上的详细信息,我在http://svn.mywebsite.com/project上为 svn 存储库创建了一个子域。我可以将本地更改提交到此位置。但我不确定这个目录中的文件如何移动到主网站..即http://www.mywebsite.com 是由Capistrano还是Passenger完成的?
I have a static page that I want to compile locally using gulp. The command I would run in the local shell, from the directory that contains gulp and the gulpfile (set by compile_path in this example) would be "$> gulp build".
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, 'appname'
set :repo_url, 'git@bitbucket.org/appname.git'
set :compile_path, '/Users/nico/DevOps/repo/appname'
# Default branch is :master
set :branch, 'cap3'
namespace :deploy do
after :started, :notify do
desc 'Run gulp to compile …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 Capistrano 部署 Rails 应用程序。我有一个问题bundler: command not found: pumactl
,我似乎已经通过将 puma gem 添加到:development
组外的 Gemfile 中解决了这个问题。
文件
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sass-rails', '~> 5.0'
gem 'semantic-ui-sass', github: 'doabit/semantic-ui-sass'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'mongoid'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'prawn-rails', '0.1.1'
gem 'fastimage', '1.6.6'
gem 'mini_magick', '4.0.4'
gem 'carrierwave', '0.10.0'
gem 'puma', '2.11.1'
group :development, :test do
gem 'capistrano', '3.3.5'
gem 'capistrano-rvm', …
Run Code Online (Sandbox Code Playgroud) 我试图将修补程序部署到我的临时服务器 (DigitalOcean),但收到“无法锁定引用”错误。我之前偶然发现了这个错误。我有一个分支“hotfix”,然后创建了“hotfix/some-hotfix”分支,当我尝试将其推送到原点时,我收到了错误。我通过删除存储库(BitBucket)中的分支“hotfix”来修复它。但现在我在临时服务器上部署时得到了它。
堆栈跟踪:
SSHKit::Command::Failed: git exit status: 1
git stdout: Fetching origin
error: cannot lock ref 'refs/heads/hotfix/my-hotfix-branch-name': 'refs/heads/hotfix' exists; cannot create 'refs/heads/hotfix/my-hotfix-branch-name'
From bitbucket.org:username/repo-name
! [new branch] hotfix/my-hotfix-branch-name -> hotfix/my-hotfix-branch-name (unable to update local ref)
error: some local refs could not be updated; try running
'git remote prune origin' to remove any old, conflicting branches
error: Could not fetch origin
git stderr: Nothing written
Run Code Online (Sandbox Code Playgroud)
我尝试跑步,git remote prune origin
但没有帮助。我在这里没有任何想法
我安装了 capistrano via gem install capistrano
,但是当我运行cap install
初始化项目时,该命令输出:
command not found: cap
以前我安装了 ruby 2.6.5p114brew install ruby
并更新了我的新版本路径,这是在 MacOS 版本 10.14.6
我想部署一个 Symfony4 项目,不知道我错过了什么步骤?
当我使用 capistrano (对于 Symfony)部署我的项目时,出现以下错误:
INFO [72050b7f] Running /usr/bin/env composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader as dome@XX.XXX.XXX.XXX
DEBUG [72050b7f] Command: cd /var/www/dev/Dome/releases/20160812073355 && ( export SYMFONY_ENV="prod" ; /usr/bin/env composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader )
DEBUG [72050b7f] The disk hosting /var/www/.composer is full, this may be the cause of the following exception
DEBUG [72050b7f]
DEBUG [72050b7f]
[ErrorException]
ZipArchive::extractTo(): No space left on device
Run Code Online (Sandbox Code Playgroud)
你能帮助我吗 ?
capistrano ×6
capistrano3 ×2
symfony ×2
composer-php ×1
dreamhost ×1
git ×1
passenger ×1
puma ×1
ruby ×1
rubygems ×1