Using Bedrock + Sage to deploy with Capistrano (theme Gulp dist files?)


#21

I am still having the same error timichango is having even with using the updated gist. I know this thread is over a year old, but i would really appreciate some help.

cap aborted!
SSHKit::runner::ExecuteError: Exception while executing as serveruser@serverip: scp: ~/apps/myapp/current/web/app/themes/themename/dist: No such file or directory

scp: ~/apps/myapp/current/web/app/themes/themename/dist: No such file or directory

Tasks: TOP => assets:deploy => assets:copy
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as serveruser@serverip: scp: ~/apps/myapp/current/web/app/themes/themename/dist: No such file or directory

It seems to me it is failing right at:

      upload! fetch(:local_dist_path).to_s, fetch(:remote_dist_path), recursive: true

#22

Could it be a permissions error? Base on what the error is throwing, It seems to me that it is not allowing capistrano to create a new directories (being that the directory /dist doesn’t exist on the remote server) when the build is pushed to production. I could be way off base here…