I got the code but can't run it the way it is on the Internet

Hi Sharetribe!

I recently got sharetribe source code v6.1.0.
Inside this code I found video, pictures, titles and other text that appropriate the web site on the Internet. The site sits fine on the Internet and also deployed to DigitalOcean.
I read https://github.com/sharetribe/sharetribe for release 6.1.0 carefully.
Completed all steps of the manual without errors, given the specified versions (Ruby v2.3.1, Rails 4.2.7.1, MySQL 5.7 and so on).
But when I run this code I see the form for creating a new marketplace instead of expected home page on the Internet.
I’ve tried many ways to run the code, but they all give the same look.
Mostly I used “foreman start -f Procfile.static”.
This is the first time I have encountered with Sharetribe but have some practise with Rails.
Maybe there’s something special in developing open source Sharetribe and I don’t know this.
Could you direct me in my issue. I would be very grateful for your help.
Thank you.

Hi there!

Indeed after your installed everything, you can then go to http://lvh.me:3000 or http://lvh.me:5000 and fill in the form to create a new marketplace and admin user. You should be now able to access your marketplace and modify it from the admin area.

By the way is there any reason why you’ve decided to move forward with an old version of Sharetribe Go (latest release is v8.0.0)?

1 Like

Hi Thomas!

Yes, I then filled in the form but instead of my home page I see the home page titled " Community marketplace" in the center top. It’s not the home page of the code that on the Internet.

Thank you Thomas for response.

Thomas,
About upgrade I’ve thought about it and know these links:
“https://github.com/sharetribe/sharetribe/blob/master/UPGRADE.md”
“https://github.com/sharetribe/sharetribe/releases”

But for me now the most important thing is that the code corresponds to the site on the Internet.
Once I start working with the code and I will get practice, then I’ll do an update, of course.

@alex.shah Thanks for the details.

Note that the Sharetribe Team doesn’t offer support for the open-source version. I’m not promising any answer. We help here every now and then but hopefully other open-source users will also jump in to share their thoughts.

What do you mean by:

for code I got

Do you mean that you’re attempting to restore a backup or another website? If so, you should follow the restore instructions and open that marketplace directly, not a new one that you’d create from scratch.

1 Like

Thomas,

Web site passed to a new owner together with rails project based on Sharetribe. I should continue support and developing this project.
I cloned project from Bitbucket and have read README.md that was very similar to sharetribe README.md. Therefore I decided to address to Sharetribe forum. First I addressed to sharetribe.com and Vesa advised to turn to forum.
The ex-developer is not responding. So I decided to turn to you.
I just wanted to ask a specialist what the reason for this behavior of the code.
I’m not necessarily waiting for the launch we’re waiting for.
More important to me is your assessment of this situation.

Thank you.

I will try to ask differently.
I have a working sharetribe open source project that corresponds to a web site on the Internet.
I run this project (developed many years) in development mode as described in Sharetribe README.md.
Should I see my own home page on my local server immediately after run “foreman start -f Procfile.static”?
Unfortunately I see sharetribe’s home page that usually appears after creating a new marketplace.

For example if simplify I developing in Ruby on Rails in this order:

  1. I make changes in files.
  2. Run rails s.
  3. And check what happens.

I am a beginner in sharetribe. Maybe Sharetribe does it in different way.
Thank you.

How to get database from production server and import to local database for developing

Very late reply, forgot about this post:
1. On the production server to export a database used
mysqldump -u username -p databasename > MySQL.sql
2. Used sftp to transfer MySQL.sql file from productiom server to local one.
3. And import this MySQL.sql to empty database
mysql -u username -p emptydatabase < MySQL.sql

Does anyone know what table the admin user is stored in?

Admins are regular people, however they are marked as admin in the community_memberships table.
A specific person_id can be marked as admin there, for a marketplace.

And of course that can be managed from the admin panel too, via the Users section.

1 Like

Thank you, Thomas for your response. The thing is we have the same sharetribe on the staging droplet but with old data. Everyone forgot username and password. So I wondered if I could take some table of the database from production server (where we have admin rights) and copy this table to staging database to login on as admin. Is it possible to recover the username and password in this way?
So could I copy community_memberships table from production database to staging database?
Thanks.

you can just promote some user to community admin and change their password from rails console:

u = Person.find_by_username('someuser')
u.community_membership.update(admin: true)
u.password = p.password_confirmation = 'NewPassword'
u.save
1 Like

Many thanks, zenik. Thanks for reminding me of console. Thank you.