Hi, I’m inheriting a sharetribe application and am having some trouble understanding some elements of it. There are some project requirements and getting held up on the asset pipeline is really throwing a wrench in things. Apologies if these are obvious questions but I’m new to sharetribe and fighting this early on is leaving me a bit flustered.
Setup: Rails 3…2.21, Currently cloning application settings from a staging environment into development, which seems to be part of the issue.
As far as I understand nobody has touched the asset pipeline so far, and the staging and production assets are being hosted on s3 and (I assume automatically) updated by the asset_sync.
Question 1: What should your application settings be for a normal local asset development workflow?
After doing some investigation I realized the community.stylesheet_url == the staging s3 bucket url. However after fooling around I can’t tell what I should be changing it to. Even after changing the stylesheet_url and some other development.rb settings I couldn’t get local assets to load and was given path errors in chrome debugger. If the asset pipeline setup is default shipped with sharetribe, what do I need to be changing to load assets locally instead fetching from a foreign S3 url?
Question 2: Is there anything I have to do before deploying to a heroku/S3 production environment to ensure the stylesheets are updated? I ask because without being able to see css changes locally it’s difficult to know if the changes not being reflected on staging are a bi-product of missing something in the standard deployment process or an error in the css.
Ps. isn’t the asset_sync not advised by heroku or is that an ‘after sharetribe started using it’ issue?