Install Sharetribe Go on Ubuntu 16.04

Ref: https://github.com/sharetribe/sharetribe

Make sure ruby already installed.
Install Sphinx:
download it from http://sphinxsearch.com/ then extract it. Pls read: http://sphinxsearch.com/docs/sphinx3.html#getting-started-on-linux-and-macos
Here is the extracted path: /home/teddy/Documents/sphinx-3.1.1/
And the ‘program’ (searchd, indexer, etc) in ‘bin’ dir: /home/teddy/Documents/sphinx-3.1.1/bin
check :

NOTE: TO MAKE THE EXECUTABLE CAN RUN GLOBALLY, PLS DO:

THEN RUN FROM ANYWHERE

Creating ‘test’ database (no problem if the database is already exist)

I need to create the sphinx.conf file (read: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-sphinx-on-ubuntu-16-04#step-6-%E2%80%94-testing)
First I need to remove/move ‘sphinxdata’ dir in ‘bin’ dir because I got this message ‘No config file, using ‘sphinxdata’ folder.’ (read: https://stackoverflow.com/questions/50837676/sphinx-3-0-3-searchd-dont-see-my-config)
Create a new file ‘sphinx.conf’ in /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/ dir:

RUN:

IF I GOT ‘bind() failed on 0.0.0.0, retrying’ THEN IT MEANS ‘searchd’ ALREADY RUNNING ON THE BACKGROUND (REF: http://sphinxsearch.com/forum/view.html?id=5542). CHECK

KILL THEM WITH ‘killall searchd’ THEN CHECK AGAIN:

RE RUN ‘searchd’

MODIFY sphinx.conf

BUT

OK. HERE IS THE WORKING sphinx.conf. USE ‘type=rt’ (READ: https://sphinxsearch.com/forum/view.html?id=16238)

PLS REMOVE ALL FILE IN /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data FIRST! ALSO RUN ‘killall searchd’ THEN

NO ERROR!

 

Imagemagick
Check

INSTALL SHARETRIBE

CURRENTLY HAVE TO USE ruby 2.6.2

SO USE rbenv TO INSTALL 2.6.2 AND MAKE IT DEFAULT WITH ‘global’

THEN CONTINUE WITH

Install node modules:

Create a database.yml file by copying the example database configuration:

Add your database configuration details to config/database.yml. You will probably only need to fill in the password for the database(s). Pls set the right config for ‘development’ and ‘test’:

Create a config.yml file by copying the example configuration file:

Create and initialize the database:

Run Sphinx index:

Output:

Start the Sphinx daemon:

Output:

Start the development server:

But Install ‘foreman’ FIRST (READ: https://github.com/ddollar/foreman)

But to run ‘foreman’, it need node js v10.15.3 and npm 6.4.1

current node version is v8.9.4

So use ‘nvm’ to install node v10.15.3

RE RUN ‘foreman’ BUT GOT ANOTHER ERROR ABOUT node-sass

 

Then open your browser: http://localhost:5000
The first time will go to http://localhost:5000/communities/new?locale=en
Setting:
admin email: advcha@yahoo.com
admin pass: Admin@123
Admin user first name: Satria
Admin user last name; Faestha
Marketplace name: Web Devs Service
Marketplace type: Service marketplace
Marketplace country: Australia
Marketplace language: English
Save
Then it’ll go to http://web-devs-service.lvh.me:3000/?auth=IETnn4GA1Nc
BUT I GOT

IT SHOULD OPEN http://localhost:5000ALSO OPEN ANOTHER TERMINAL THEN RUN:

ADMIN: http://localhost:5000/en/login
admin email: advcha@yahoo.com
admin pass: Admin@123

JS ERROR

I did : nvm alias default 10.15.3
also nvm use 10.15.3

also
npm -g uninstall node-sass
npm -g i node-sass

BUT STILL EXIST

npm install node-sass

teddy@teddy:~/Documents/ruby/sharetribe$ npm rebuild node-sass

> node-sass@4.12.0 install /home/teddy/Documents/ruby/sharetribe/node_modules/node-sass
> node scripts/install.js

node-sass build Binary found at /home/teddy/Documents/ruby/sharetribe/node_modules/node-sass/vendor/linux-x64-64/binding.node

> node-sass@4.12.0 postinstall /home/teddy/Documents/ruby/sharetribe/node_modules/node-sass
> node scripts/build.js

Binary found at /home/teddy/Documents/ruby/sharetribe/node_modules/node-sass/vendor/linux-x64-64/binding.node
Testing binary
Binary is fine
node-sass@4.12.0 /home/teddy/Documents/ruby/sharetribe/node_modules/node-sass

teddy@teddy:~/Documents/ruby/sharetribe$ npm ls node-sass
/home/teddy/Documents/ruby/sharetribe
└── node-sass@4.12.0
SOLUTION: REMOVE ‘node_modules’ DIR IN SHARETRIBE ROOT AND IN client/ DIR
THEN RUN IN SHARETRIBE ROOT ‘npm install –no-cache’
NO MORE ERROR!

Leave a Reply

Your email address will not be published. Required fields are marked *