# Deploying WordPress with Capistrano screencast

**URL:** https://discourse.roots.io/t/deploying-wordpress-with-capistrano-screencast/863
**Category:** bedrock
**Tags:** deploys
**Created:** 2013-12-10T15:54:36Z
**Posts:** 69
**Showing post:** 26 of 69

## Post 26 by @swalkinshaw — 2013-12-16T17:15:09Z

This goes back to your other issue where Capistrano doesn’t use an interactive shell so it won’t pick up any bash settings including your `.bash_profile`.

What you want is the command map part of SSHKit (Capistrano is built on top of it). Basically just add this to your `deploy.rb` (or stage specific config):

```
SSHKit.config.command_map[:composer] = "/path/to/composer"
```

Then just running `execute :composer, :install` will look up the `composer` command in the command map and expand it to the full path!

---

_[View the full topic](https://discourse.roots.io/t/deploying-wordpress-with-capistrano-screencast/863)._
