I am trying to extract mutations and store into its own store folder with store.js file. However, this.$store in Rails.ajax function is not working, it is returning undefined. While this.$store in other functions like computed is working fine.
Take a look at this documentation on how to use pry gem to debug this error. https://dev.to/elimerrell/debugging-with-pry-a-beginners-guide-3p99
But as I said, most likely, that patient object does not have an address. That is why you have that error.
From the code, most likely that patient does not have an address. Have you tried using byebug or pry to take a look?
To help me troubleshoot better, can you share all the attributes for the Patient Class and share the entire code for Patient model?
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.
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. 😊
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?