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 :
|
1 2 3 4 5 6 7 8 |
teddy@teddy:~/Documents/sphinx-3.1.1/bin$ ./searchd Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) no config file, using 'sphinxdata' folder... listening on all interfaces, port=9312 listening on all interfaces, port=9306 |
NOTE: TO MAKE THE EXECUTABLE CAN RUN GLOBALLY, PLS DO:
|
1 2 3 4 |
teddy@teddy:~$ sudo ln -s /home/teddy/Documents/sphinx-3.1.1/bin/ /usr/bin/ teddy@teddy:~$ PATH="$HOME/Documents/sphinx-3.1.1/bin:$PATH" teddy@teddy:~$ export PATH |
THEN RUN FROM ANYWHERE
|
1 2 3 4 5 6 7 8 |
teddy@teddy:~$ searchd Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) no config file, using 'sphinxdata' folder... listening on all interfaces, port=9312 listening on all interfaces, port=9306 |
Creating ‘test’ database (no problem if the database is already exist)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
teddy@teddy:~/Documents/sphinx-3.1.1/bin$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 19 Server version: 5.7.24-0ubuntu0.16.04.1 (Ubuntu) Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE test; ERROR 1007 (HY000): Can't create database 'test'; database exists mysql> SOURCE /home/teddy/Documents/sphinx-3.1.1/etc/example.sql; Query OK, 0 rows affected, 1 warning (0,00 sec) Query OK, 0 rows affected (0,06 sec) Query OK, 4 rows affected (0,01 sec) Records: 4 Duplicates: 0 Warnings: 0 Query OK, 0 rows affected, 1 warning (0,00 sec) Query OK, 0 rows affected (0,06 sec) Query OK, 10 rows affected (0,01 sec) Records: 10 Duplicates: 0 Warnings: 0 mysql> quit |
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:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
source src1 { type = mysql #SQL settings (for ‘mysql’ and ‘pgsql’ types) sql_host = localhost sql_user = root sql_pass = teddy sql_db = test sql_port = 3306 # optional, default is 3306 sql_query = \ SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \ FROM documents sql_attr_uint = group_id sql_attr_timestamp = date_added } index test1 { source = src1 path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/test1 } searchd { listen = 9306:mysql41 log = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/searchd.log query_log = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/query.log read_timeout = 5 max_children = 30 pid_file = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/searchd.pid seamless_rotate = 1 preopen_indexes = 1 unlink_old = 1 binlog_path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data } |
RUN:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
teddy@teddy:~$ searchd --config /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf'... listening on all interfaces, port=9306 bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... ^C teddy@teddy:~$ bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... bind() failed on 0.0.0.0, retrying... FATAL: bind() failed on 0.0.0.0: Address already in use shutdown complete |
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
|
1 2 3 4 |
teddy@teddy:~$ ps aux|grep searchd teddy 517 0.0 0.0 23896 328 ? S 11:26 0:00 searchd teddy 518 2.0 0.0 91280 3400 ? Sl 11:26 0:11 searchd teddy 868 0.0 0.0 14232 968 pts/0 S+ 11:35 0:00 grep --color=auto searchd |
KILL THEM WITH ‘killall searchd’ THEN CHECK AGAIN:
|
1 2 3 4 |
teddy@teddy:~$ killall searchd teddy@teddy:~$ ps aux|grep searchd teddy 888 0.0 0.0 14232 912 pts/0 S+ 11:36 0:00 grep --color=auto searchd |
RE RUN ‘searchd’
|
1 2 3 4 5 6 7 8 9 |
teddy@teddy:~$ searchd --config /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) WARNING: both 'sphinxdata' and config file '/home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf' exist; using 'sphinxdata' folder no config file, using 'sphinxdata' folder... listening on all interfaces, port=9312 listening on all interfaces, port=9306 |
MODIFY sphinx.conf
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# # Minimal Sphinx configuration sample (clean, simple, functional) # source src1 { type = mysql sql_host = localhost sql_user = root sql_pass = teddy sql_db = test sql_port = 3306 # optional, default is 3306 sql_query = \ SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \ FROM documents sql_attr_uint = group_id sql_attr_timestamp = date_added } index test1 { source = src1 path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/test1 } index testrt { type = rt rt_mem_limit = 128M path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/testrt rt_field = title rt_field = content rt_attr_uint = gid } indexer { mem_limit = 128M } searchd { listen = 9312 listen = 9306:mysql41 log = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/searchd.log query_log = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/query.log read_timeout = 5 max_children = 30 pid_file = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/searchd.pid seamless_rotate = 1 preopen_indexes = 1 unlink_old = 1 workers = threads # for RT to work binlog_path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data } |
BUT
|
1 2 3 4 5 6 7 8 9 10 11 12 |
teddy@teddy:/usr/sbin$ searchd --config /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf'... listening on all interfaces, port=9312 listening on all interfaces, port=9306 precaching index 'test1' WARNING: index 'test1': prealloc: failed to open /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/test1.sph: No such file or directory; NOT SERVING precaching index 'testrt' precached 2 indexes in 0.004 sec |
OK. HERE IS THE WORKING sphinx.conf. USE ‘type=rt’ (READ: https://sphinxsearch.com/forum/view.html?id=16238)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# # Minimal Sphinx configuration sample (clean, simple, functional) # source src1 { type = mysql sql_host = localhost sql_user = root sql_pass = teddy sql_db = test sql_port = 3306 # optional, default is 3306 sql_query = \ SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \ FROM documents sql_attr_uint = group_id sql_attr_timestamp = date_added } index test1 { type = rt source = src1 path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/test1 rt_field = title rt_field = content rt_attr_uint = gid } index testrt { type = rt rt_mem_limit = 128M path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/testrt rt_field = title rt_field = content rt_attr_uint = gid } indexer { mem_limit = 128M } searchd { listen = 9312 listen = 9306:mysql41 log = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/searchd.log query_log = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/query.log read_timeout = 5 max_children = 30 pid_file = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data/searchd.pid seamless_rotate = 1 preopen_indexes = 1 unlink_old = 1 workers = threads # for RT to work binlog_path = /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data } |
PLS REMOVE ALL FILE IN /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/data FIRST! ALSO RUN ‘killall searchd’ THEN
|
1 2 3 4 5 6 7 8 9 10 11 |
teddy@teddy:/usr/sbin$ searchd --config /home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/home/teddy/Documents/sphinx-3.1.1/sphinxsearch/sphinx.conf'... listening on all interfaces, port=9312 listening on all interfaces, port=9306 precaching index 'test1' precaching index 'testrt' precached 2 indexes in 0.002 sec |
NO ERROR!
Imagemagick
Check
|
1 2 3 4 5 |
teddy@teddy:~/Documents/sphinx-3.1.1/bin$ identify -version Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC Modules OpenMP Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib |
INSTALL SHARETRIBE
|
1 2 3 |
git clone git://github.com/sharetribe/sharetribe.git cd sharetribe git checkout latest |
CURRENTLY HAVE TO USE ruby 2.6.2
|
1 2 |
teddy@teddy:~/Documents/ruby/sharetribe$ bundle install rbenv: version `2.6.2' is not installed (set by /home/teddy/Documents/ruby/sharetribe/.ruby-version) |
SO USE rbenv TO INSTALL 2.6.2 AND MAKE IT DEFAULT WITH ‘global’
|
1 2 3 |
rbenv install 2.6.2 rbenv global 2.6.2 ruby -v |
THEN CONTINUE WITH
|
1 |
bundle install |
Install node modules:
|
1 |
npm install |
Create a database.yml file by copying the example database configuration:
|
1 |
cp config/database.example.yml config/database.yml |
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’:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
development: adapter: mysql2 database: sharetribe_development encoding: utf8 username: root password: teddy host: localhost # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: &test adapter: mysql2 database: sharetribe_test encoding: utf8 username: root password: teddy host: localhost staging: adapter: mysql2 database: sharetribe_staging encoding: utf8 username: # ADD DATABASE USERNAME password: # ADD DATABASE PASSWORD host: localhost production: adapter: mysql2 database: sharetribe_production encoding: utf8 username: # ADD DATABASE USERNAME password: # ADD DATABASE PASSWORD host: localhost cucumber: <<: *test |
Create a config.yml file by copying the example configuration file:
|
1 |
cp config/config.example.yml config/config.yml |
Create and initialize the database:
|
1 |
bundle exec rake db:create db:structure:load |
Run Sphinx index:
|
1 |
bundle exec rake ts:index |
Output:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
teddy@teddy:~/Documents/ruby/sharetribe$ bundle exec rake ts:index Generating configuration to /home/teddy/Documents/ruby/sharetribe/config/development.sphinx.conf DEBUG (0.2ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483 DEBUG ↳ app/indices/custom_field_value_index.rb:8 DEBUG Delayed::Backend::ActiveRecord::Job Destroy (0.4ms) DELETE FROM `delayed_jobs` WHERE (handler LIKE ('--- !ruby/object:ThinkingSphinx::Deltas::%') AND locked_at IS NULL AND locked_by IS NULL AND failed_at IS NULL) DEBUG ↳ /home/teddy/.rbenv/versions/2.6.2/bin/rake:23 Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/home/teddy/Documents/ruby/sharetribe/config/development.sphinx.conf'... WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'enable_star' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: 1 more warnings skipped. indexing index 'custom_field_value_core'... collected 0 docs, 0.0 MB total 0 docs, 0.0 Kb total 0.0 sec, 0.0 Kb/sec, 0 docs/sec indexing index 'custom_field_value_delta'... collected 0 docs, 0.0 MB total 0 docs, 0.0 Kb total 0.0 sec, 0.0 Kb/sec, 0 docs/sec indexing index 'listing_core'... collected 0 docs, 0.0 MB total 0 docs, 0.0 Kb total 0.0 sec, 0.0 Kb/sec, 0 docs/sec indexing index 'listing_delta'... collected 0 docs, 0.0 MB total 0 docs, 0.0 Kb total 0.0 sec, 0.0 Kb/sec, 0 docs/sec skipping non-plain index 'custom_field_value'... skipping non-plain index 'listing'... |
Start the Sphinx daemon:
|
1 |
bundle <span class="pl-c1">exec</span> rake ts:start |
Output:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
teddy@teddy:~/Documents/ruby/sharetribe$ bundle exec rake ts:start Sphinx 3.1.1 (commit 612d99f) Copyright (c) 2001-2018, Andrew Aksyonoff Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com) using config file '/home/teddy/Documents/ruby/sharetribe/config/development.sphinx.conf'... WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'enable_star' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: key 'docinfo' was permanently removed from Sphinx configuration. Refer to documentation for details. WARNING: 1 more warnings skipped. listening on all interfaces, port=3563 precaching index 'custom_field_value_core' precaching index 'custom_field_value_delta' precaching index 'listing_core' precaching index 'listing_delta' precached 4 indexes in 0.006 sec Started searchd successfully (pid: 6158). |
Start the development server:
|
1 |
foreman start -f Procfile.static |
But Install ‘foreman’ FIRST (READ: https://github.com/ddollar/foreman)
|
1 2 3 4 5 6 7 8 9 10 11 12 |
teddy@teddy:~/Documents/ruby/sharetribe$ gem install foreman Fetching thor-0.19.4.gem Fetching foreman-0.85.0.gem /home/teddy/.rbenv/rbenv.d/exec/gem-rehash/rubygems_plugin.rb:6: warning: Insecure world writable dir /home/teddy/.composer/vendor/bin in PATH, mode 040777 Successfully installed thor-0.19.4 Successfully installed foreman-0.85.0 Parsing documentation for thor-0.19.4 Installing ri documentation for thor-0.19.4 Parsing documentation for foreman-0.85.0 Installing ri documentation for foreman-0.85.0 Done installing documentation for thor, foreman after 0 seconds 2 gems installed |
But to run ‘foreman’, it need node js v10.15.3 and npm 6.4.1
|
1 2 3 4 5 6 7 8 9 10 |
teddy@teddy:~/Documents/ruby/sharetribe$ foreman start -f Procfile.static /home/teddy/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/foreman-0.85.0/lib/foreman/process.rb:54: warning: Insecure world writable dir /home/teddy/.composer/vendor/bin in PATH, mode 040777 ... 13:34:13 rails-client-assets.1 | node: 8.9.4 13:34:13 rails-client-assets.1 | Error: Wanted node version 10.15.3 (10.15.3) 13:34:13 rails-client-assets.1 | To install node, run `nvm install 10.15.3` or see https://nodejs.org/ 13:34:13 rails-client-assets.1 | npm: 6.7.0 13:34:13 rails-client-assets.1 | Error: Wanted npm version 6.4.1 (6.4.1) 13:34:13 rails-client-assets.1 | To install npm, run `npm install -g npm@6.4.1` ... |
current node version is v8.9.4
|
1 2 |
teddy@teddy:~/Documents/ruby/sharetribe$ node -v v8.9.4 |
So use ‘nvm’ to install node v10.15.3
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
teddy@teddy:~/Documents/ruby/sharetribe$ nvm install 10.15.3 Downloading and installing node v10.15.3... Downloading https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.xz... ######################################################################## 100,0% Computing checksum with sha256sum Checksums matched! Now using node v10.15.3 (npm v6.4.1) teddy@teddy:~/Documents/ruby/sharetribe$ node -v v10.15.3 teddy@teddy:~/Documents/ruby/sharetribe$ nvm ls v8.9.4 v8.15.0 v10.15.1 -> v10.15.3 default -> 8.9.4 (-> v8.9.4) node -> stable (-> v10.15.3) (default) stable -> 10.15 (-> v10.15.3) (default) iojs -> N/A (default) lts/* -> lts/dubnium (-> N/A) lts/argon -> v4.9.1 (-> N/A) lts/boron -> v6.17.1 (-> N/A) lts/carbon -> v8.16.1 (-> N/A) lts/dubnium -> v10.16.3 (-> N/A) |
RE RUN ‘foreman’ BUT GOT ANOTHER ERROR ABOUT node-sass
|
1 2 3 4 5 6 7 8 9 10 11 12 |
... 13:45:00 rails-client-assets.1 | ERROR in ./node_modules/react-dates/css/styles.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./node_modules/react-dates/css/styles.scss) 13:45:00 rails-client-assets.1 | Module build failed (from ./node_modules/sass-loader/lib/loader.js): 13:45:00 rails-client-assets.1 | Error: Missing binding /home/teddy/Documents/ruby/sharetribe/client/node_modules/node-sass/vendor/linux-x64-64/binding.node 13:45:00 rails-client-assets.1 | Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x 13:45:00 rails-client-assets.1 | 13:45:00 rails-client-assets.1 | Found bindings for the following environments: 13:45:00 rails-client-assets.1 | - Linux 64-bit with Node.js 8.x 13:45:00 rails-client-assets.1 | 13:45:00 rails-client-assets.1 | This usually happens because your environment has changed since running `npm install`. 13:45:00 rails-client-assets.1 | Run `npm rebuild node-sass` to download the binding for your current environment. ... |
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
|
1 2 3 |
This site can’t be reached web-devs-service.lvh.me refused to connect. |
IT SHOULD OPEN http://localhost:5000
ALSO OPEN ANOTHER TERMINAL THEN RUN:
|
1 |
teddy@teddy:~/Documents/ruby/sharetribe$ bundle exec rake jobs:work |
ADMIN: http://localhost:5000/en/login
admin email: advcha@yahoo.com
admin pass: Admin@123
JS ERROR
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
Uncaught Error: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Missing binding /home/teddy/Documents/ruby/sharetribe/client/node_modules/node-sass/vendor/linux-x64-64/binding.node Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x Found bindings for the following environments: - Linux 64-bit with Node.js 8.x This usually happens because your environment has changed since running `npm install`. Run `npm rebuild node-sass` to download the binding for your current environment. at module.exports (:5000/home/teddy/Documents/ruby/sharetribe/client/node_modules/node-sass/lib/binding.js:15) at Object.<anonymous> (:5000/home/teddy/Documents/ruby/sharetribe/client/node_modules/node-sass/lib/index.js:14) at Module._compile (:5000/home/teddy/Documents/ruby/sharetribe/client/node_modules/v8-compile-cache/v8-compile-cache.js:192) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712) at Module.load (internal/modules/cjs/loader.js:600) at tryModuleLoad (internal/modules/cjs/loader.js:539) at Function.Module._load (internal/modules/cjs/loader.js:531) at Module.require (internal/modules/cjs/loader.js:637) at require (:5000/home/teddy/Documents/ruby/sharetribe/client/node_modules/v8-compile-cache/v8-compile-cache.js:161) at Object.sassLoader (:5000/home/teddy/Documents/ruby/sharetribe/client/node_modules/sass-loader/lib/loader.js:46) at eval (styles.scss:1) at Object../node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./node_modules/react-dates/css/styles.scss (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:2151) at __webpack_require__ (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8367) at eval (styles.scss?23f2:2) at Object../node_modules/react-dates/css/styles.scss (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:5051) at __webpack_require__ (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8367) at eval (ManageAvailabilityCalendar.js?7215:1) at Module../app/components/composites/ManageAvailabilityCalendar/ManageAvailabilityCalendar.js (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8791) at __webpack_require__ (application-704bf177df4b8be9f75d0dfecbd09d41cd5da0080f515899b9faa2fc882972f4.js:8367) at eval (ManageAvailability.js:14) slogan_and_description:504 Uncaught TypeError: Cannot set property 'jsonTranslations' of undefined at slogan_and_description:504 slogan_and_description:536 Uncaught ReferenceError: $ is not defined at slogan_and_description:536 slogan_and_description:545 Uncaught ReferenceError: $ is not defined at slogan_and_description:545 slogan_and_description:549 Uncaught ReferenceError: $ is not defined at slogan_and_description:549 slogan_and_description:553 Uncaught ReferenceError: ST is not defined at slogan_and_description:553 at slogan_and_description:558 clientStartup.js?2d59:161 Uncaught Error: ReactOnRails encountered an error while rendering component: OnboardingTopBar. Original message: Could not find component registered with name OnboardingTopBar. Registered component names include [ ]. Maybe you forgot to register the component? at Object.get (ComponentRegistry.js?8e5d:58) at Object.getComponent (ReactOnRails.js?6455:196) at render (clientStartup.js?2d59:134) at forEach (clientStartup.js?2d59:58) at forEachComponent (clientStartup.js?2d59:71) at reactOnRailsPageLoaded (clientStartup.js?2d59:179) at HTMLDocument.renderInit (clientStartup.js?2d59:204) step2_sloganDescription-b19a5e558e3d56b5334dcfe55e3c036c.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found) |
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!