Got it running on localhost

49 views
Skip to first unread message

Laura Dean

unread,
Nov 18, 2019, 11:39:33 AM11/18/19
to Catarse Dev
Hello all!

I did get Catarse running locally but I had to make a number of changes. I am wondering if this is because no one has started it up from scratch in a while.

I had to move numpy to the top of catarse_recommender/resources/requirements.txt and also add cython.

I had to change the versions of some of the gems in Gemfile and Gemfile.lock:
mini_magick => 4.5.1 
mini_portile2 => 2.3.0
nokogiri => 1.8.5
rubyzip => 1.2.2

I next had to add the following seeds to services/catarse/db/seeds.rb in the CatarseSettings section:
fdw_user: 'postgres'
common_db_user: 'postgres'
common_db_port: '5432'
common_db_password: 'example'
common_db_name: 'service_core'

After that everything started up perfectly but I still was seeing a migration error, so I commented that out from services/catarse/config/environments/development.rb

I think that also services/catarse/bin/* should be in the .gitignore and the currently committed generated files should be removed.


--> I am happy to make a pull request or take advice on what I should do differently, especially regarding commenting out the migration error.


Anyways that got me to the point where the front page displays at localhost:3000, but most of the links point to subdomains of catarse.me. Since localhost can't handle subdomains and my hosts file can't use a port, I'm guessing there's some nginx configuration in the docker container that has to be set up...

Cheers!
~Laura

Laura Dean

unread,
Nov 18, 2019, 2:56:35 PM11/18/19
to Catarse Dev
Sorry I was wrong about the first step, cython and numpy in the requirements.txt did not work, actually you have to add to the catarse_recommender Dockerfile:

RUN pip3 install numpy
RUN pip3 install cython

(these lines above run the requirements.txt)

I thought it should work to just add to the requirements and Docker faked me out because I wan't using --force-recreate

~Laura
 

ifelajulo fasina

unread,
Dec 11, 2019, 9:41:05 AM12/11/19
to Catarse Dev
Hi Laura,please how can i deploy catarse to google cloud.i have free credits,can i get domain name on firebase.
Thx

Júlio Campos

unread,
Dec 11, 2019, 9:43:16 AM12/11/19
to catar...@googlegroups.com
I used an old tag of Catarse to run for a client.
It is the monolith version. It’s way easier to deploy and have almost all functions.

Júlio Campos

Em 11 de dezembro de 2019 às 11:41:08, ifelajulo fasina (ifef...@gmail.com) escreveu:

Hi Laura,please how can i deploy catarse to google cloud.i have free credits,can i get domain name on firebase.
Thx

--
You received this message because you are subscribed to the Google Groups "Catarse Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to catarse-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/catarse-dev/f762b228-f05c-43f2-8df6-4a164d4c595b%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages