Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I deploy Spree Commerce to Heroku?

wairaguedd asked in General

Who can direct me to a guide on how to deploy Spree Commerce to Heroku? I would really appreciate.

Reply

Hi, may I know what stage are you at right now with your application? Have you created a rails app following these instructions from the spree gem? https://github.com/spree/spree

If you have, where are you stuck specifically for the deployment to heroku?

Reply

In any case, if you follow the instructions from spree gem, you should be able to create your rails app locally. Then, follow the instructions here to deploye to heroku: https://devcenter.heroku.com/articles/getting-started-with-rails6

It should not be hard to deploy to heroku. If you have more questions feel free to ask. Good luck. 😊

Reply

Thanks Sheng for the advice. I'm actually reconsidering heroku as the best option. I have developed a spree commerce site on aws cloud9 and I'm looking for resources on how to deploy to production on aws(it could be ec2/Elastic Beanstalk or whatever service you recommend). Do you have any resources that could guide me through this?

Reply

Good to know you have experience with Spree.

As for guides on how to deploy to production on AWS, for Elastic Beanstalk, maybe can take a look here (https://www.codewithjason.com/deploy-ruby-rails-application-aws-elastic-beanstalk/). For ec2, try this (https://ogdenstudios.xyz/blog/how-do-i-deploy-a-rails-6-app-to-amazon-ec-2/)

Generally, Spree and rails are relatively the same thing. So instead of searching for Spree + whatever services, try searching for rails + whatever services. You may have more luck there.

Reply

Thanks Sheng. This is very helpful.

Reply

i deployed spree on heroku, but i found out i can't clone it into a repo! How do i edit files and make changes?

Reply

i actually did deploy spree using deploy button not through git push

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.