chdir

11 views
Skip to first unread message

craig buchanan

unread,
Jun 30, 2018, 2:45:33 PM6/30/18
to thin-ruby
I'm using Capistrano to deploy my Sinatra application.  Its deploy_to setting is based on string interpolation:

set :deploy_to, "/home/#{fetch(:user)}/apps/#{fetch(:application)}"

Which will deploy my application in a timestamped sub-directory of /home/my_aacount/apps/foo_app then symlink it to /home/my_aacount/apps/foo_app/current.

At this point, the thin.yml includes this line:

chdir: "/home/my_aacount/app/foo_app/current"

Is the chdir setting a static value or can it make use of string interpolation (based on Capistrano's variables)?  I'm guessing that the answer is 'static', but I thought that I'd ask.

On a related note, I'm guess that the thin.yml is intended for production usage, not development.  Is there a benefit of using it in development?  I would assume that I'd need a settings file for each environment (e.g. dev.yml, prod.yml).
Reply all
Reply to author
Forward
0 new messages