put in Capistrano 3

1,607 views
Skip to first unread message

Raison D'souza

unread,
Dec 9, 2013, 3:01:48 AM12/9/13
to capis...@googlegroups.com
While setting up a server for deployment, I have a task which asks the user for database configs, and then I set it in the shared path.

What would the corresponding command be in Capistrano 3 ?
#Capistrano 2
put db_config, "#{shared_path}/config/database.yml"

Thanks
Raison D'souza

Lee Hambley

unread,
Dec 9, 2013, 4:17:44 AM12/9/13
to capistrano

You mean upload a file? Its the "upload!()" method from out underling driver SSHKit

Sent from my Nexus 4.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/4ec48ebc-d7b4-4d4c-956c-f80948ed71ec%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Yagnik Khanna

unread,
Dec 9, 2013, 10:18:37 AM12/9/13
to capis...@googlegroups.com
In case you are not uploading from local path but mean shared path on remote server then : http://www.capistranorb.com/documentation/getting-started/remote-file/
You should be symlink the file on the remote server.

Matthew Nguyen

unread,
Mar 12, 2014, 2:13:48 AM3/12/14
to capis...@googlegroups.com
Hi
I have the same question.
put is not to upload a file but to write into a file.
I first prompt the user to enter data, build a string from the data and "put" the string to a new file.

Lee Hambley

unread,
Mar 12, 2014, 4:09:45 AM3/12/14
to capistrano
Reply all
Reply to author
Forward
0 new messages