rails capistrano部署是成功的,但是我无法访问我的deploy rails主页

时间:2019-02-06 11:09:40

标签: ruby-on-rails deployment capistrano

我尝试使用capistrano3在我的本地部署Rails

我使用命令:

cap production deploy:check
cap production deploy

当我使用这些命令时,我没有看到任何错误

但是我不知道如何访问已部署的导轨...

如何找到我的rails主页或下一个解决方案?

我希望使用unicon,nginx,capistrano3在我的本地部署Rails

/ Capfile

require "capistrano/rails"
require "capistrano/passenger"
require "capistrano/rbenv"
require "capistrano/bundler"
require "capistrano/rails/assets"

/config/deploy/production.rb

set :stage, :production
set :rails_env, :production
set :branch, "master"

server '113.198.244.128', user: 'kh', roles: %w{app web db}

/config/deploy.rb

lock "~> 3.11.0"

set :application, "deu"
set :repo_url, "https://github.com/kimchijoa/local_deu.git"
set :passenger_restart_with_touch, true
set :puma_threads, [4, 16]
append :linked_files, 'config/master.key'
set :deploy_to, "/var/www/deu"

/confg/database.yml

production:
    adapter: postgresql
    encoding: unicode
    database: deu_ict_upload
    host: localhost
    pool: 5
    username: kh
    password: <edited out>

0 个答案:

没有答案