Giter Club home page Giter Club logo

Comments (4)

seuros avatar seuros commented on May 28, 2024

I will need deploy.rb and the enviroment you deploying to .rp (ex deploy/production.rb).
You can XXX all private url/ips

from capistrano-puma.

asgerb avatar asgerb commented on May 28, 2024

Thanks a lot for the quick response, here's first the deploy.rb:

# config valid only for Capistrano 3.1
lock '3.2.1'

# ---------------------------------------------------------------------

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

set :application,     'app_name'
set :user,            'deployer'

set :repo_url,        "[email protected]:asgerb/#{fetch(:application)}.git"
set :git_enable_submodules, 1

set :bundle_flags,    '--verbose'
set :chruby_ruby,     'rubinius-2.2.10'

set :shared_path,     '~/public_html/enbiun'

set :pty, true
set :linked_files,    %w{config/secrets.yml}
set :linked_dirs,     %w(public/system)

# ---------------------------------------------------------------------

set :ssh_options, { :forward_agent => true }

# ---------------------------------------------------------------------

set :normalize_asset_timestamps, false

and production.rb:

set :rails_env,   "production"
set :deploy_to,   "/home/#{fetch(:user)}/public_html/#{fetch(:application)}"
set :branch,      "master"

from capistrano-puma.

seuros avatar seuros commented on May 28, 2024

set :linked_dirs, %w(bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system)

You will not lose the cache and you will not have to reinstall all gems between deploys

Have a nice day.

from capistrano-puma.

asgerb avatar asgerb commented on May 28, 2024

You're a gentleman and a scholar, thank you so much for the quick reponse :)
And a nice day to you too ;)

from capistrano-puma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.