Trouble understanding the development workflow and asset pipeline with sharetribe app

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?

What’s the version of Sharetribe you are using? (i.e. what’s the content of the VERSION file or git commit hash?).

I’ll get back to your other questions once I know the version. Based on your description it sounds that you are using some pretty old version. Things have changed quite a lot :smile:

Oh geez sorry, I totally forgot to click reply. Now I feel bad.

I’ve looked through the applications heroku config as well as APP_CONFIG and a few other places and can’t see anything along the lines of sharetribe version. Is there a place it’s normally suppose to live? >.<

The fork was initially made around 2 years ago. Theres only been one developer on with a bunch of work so I doubt he’s updated since then.

Thanks for your reply and sorry for my unbelievably slow response.

1 Like

No worries, no need to feel bad :smile:

There should be a file VERSION (all caps) in the project root directory.

Here’s the current VERSION file in the Github repository: https://github.com/sharetribe/sharetribe/blob/master/VERSION

lol, how did I miss VERSION in all caps.
We’re on 4.5.5