Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capistrano support? #448

Closed
kjakub opened this issue Jun 11, 2014 · 13 comments
Closed

Capistrano support? #448

kjakub opened this issue Jun 11, 2014 · 13 comments

Comments

@kjakub
Copy link
Contributor

kjakub commented Jun 11, 2014

Did anybody deploy this application with capistrano?

@rap1ds
Copy link
Member

rap1ds commented Jun 11, 2014

Not that I know, at least we at Sharetribe do not use Capistrano.

@kjakub
Copy link
Contributor Author

kjakub commented Jun 11, 2014

That is a bit pity, what you think? Probably you have it in to-do list? What is your best receipt to update code on production machine then?

@rap1ds
Copy link
Member

rap1ds commented Jun 11, 2014

That's not in our todo-list. We're using Heroku for hosting and there is a rake task to do the deployment to Heroku. It works really well for us with no down-time.

I'm not very familiar with Capistrano. What do you think, what kind of benefits would it bring to us?

@kjakub
Copy link
Contributor Author

kjakub commented Jun 13, 2014

In comparison with your rake task which do deployment to heroku - then nothing much :-) So it would bring benefits to non-heroku hosting. Yes i am also not capistrano expert, but i am lazy and use capistrano for every deployment. For now i am playing with sharetribe on local, soon i will be playing with deployment to staging. I hope i will be able to share some hints with sharetribe community.

@kjakub kjakub closed this as completed Jun 13, 2014
@rap1ds
Copy link
Member

rap1ds commented Jun 13, 2014

Thanks for information! Even though sharetribe.com is hosted on Heroku, we do want supports non-Heroku environments as well. If you think Capistrano would help in those cases, we are definitely open for improvement suggestions :)

@jonathanpopham
Copy link

I've been trying for literally weeks to get Capistrano to work for Sharetribe, I get so close, but then something breaks. Trying Mina now to see if it is a Capistrano problem. I just tried to run 'bundle exec rails console' and even that doesn't work, so I'm going to file an issue separate for that.

I'm almost at the point that I could write a non-heroku deployment guide.

@kjakub
Copy link
Contributor Author

kjakub commented Jul 31, 2014

i am sorry to hear that, but have you tried https://github.com/sharetribe/sharetribe/blob/master/docs/vps-deployment.md ?

@vivek2007
Copy link

@kjakub Hi, I am also using capistrano, I need to deploy following command in staging or production

RAILS_ENV=production bundle exec rake ts:index
RAILS_ENV=production bundle exec rake ts:start
RAILS_ENV=production NODE_ENV=production bundle exec rake assets:precompile
Invoke the delayed job worker:
RAILS_ENV=production bundle exec rake jobs:work

@kjakub
Copy link
Contributor Author

kjakub commented Feb 21, 2018

@vivek2007 commands seems correct, however not sure where the file https://github.com/sharetribe/sharetribe/blob/master/docs/vps-deployment.md go, too long time ago and i have not been around since. But i was able to find this https://github.com/kjakub/sharetribe/blob/fd1e7b4f8b4efac656c806b1fc5569fdedf93ce9/docs/vps-deployment.md

@kjakub kjakub reopened this Feb 21, 2018
@vivek2007
Copy link

@kjakub, Hi my request and question is, sometimes search not working and mail notifications not workng in that cases we need to run bundle exec rake jobs:work and ts:index

but how to run those commads from local system

@kjakub
Copy link
Contributor Author

kjakub commented Feb 21, 2018

screenshot from 2018-02-22 00-52-28

something like that from you local machine, but your email issue is related somewhere else

@vivek2007
Copy link

@kjakub, need to add rake tasks in deploy.rb or not required ?

@kjakub
Copy link
Contributor Author

kjakub commented Feb 21, 2018

no, you should just run those capistrano tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants