Giter VIP home page Giter VIP logo

Comments (15)

inoda avatar inoda commented on September 8, 2024

@alexkutsan I have no experience with Docker but would accept a PR if you created a Dockerfile for this!

from journal.

alexkutsan avatar alexkutsan commented on September 8, 2024

I was trying to create Docker image, but I have no experience deploying node js applications 🤣, faced with several issues.
Could you please create some kind of steps how to run this application on clear ubuntu environment?

from journal.

inoda avatar inoda commented on September 8, 2024

@alexkutsan This is a standard Rails app. I imagine there are some guides out there on running Rails on Ubuntu!

from journal.

inoda avatar inoda commented on September 8, 2024

I unfortunately don't know how to get started on Ubuntu (I'm on a Mac), so I'd be starting from the same point you are.

from journal.

alexkutsan avatar alexkutsan commented on September 8, 2024

I am trying to setup this application.
Currently used following steps in docker file to setup environment:

# gem update --system
# gem install bundler
# bundle update --bundler
# bundle install

the according to updated readme :

# bundle exec rails c 
Loading development environment (Rails 6.0.0)
irb(main):001:0> 
irb(main):002:0> User.create!(username: "alex", password: "password") 
Traceback (most recent call last):
        1: from (irb):2
PG::ConnectionBad (could not connect to server: No such file or directory)
	Is the server running locally and accepting
	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Could you please tip me how to fix this issue?

from journal.

inoda avatar inoda commented on September 8, 2024

@alexkutsan You need a postgresql db server running

from journal.

alexkutsan avatar alexkutsan commented on September 8, 2024

I created database host :-)
My next error :

root@56f247facea5:/myapp# User.create!(username: "alex", password: "password") 
bash: !: event not found
root@56f247facea5:/myapp# bundle exec rails c 
Loading development environment (Rails 6.0.0)
irb(main):001:0> User.create!(username: "alex", password: "password") 
Traceback (most recent call last):
        1: from (irb):1
ActiveRecord::NoDatabaseError (FATAL:  database "journal_development" does not exist)
irb(main):002:0> 

looks like I should precreate some database?

from journal.

alexkutsan avatar alexkutsan commented on September 8, 2024

Well, I googled, that I can create database with :
rake db:create

My next error :

Loading development environment (Rails 6.0.0)              
irb(main):001:0> User.create!(username: "alex", password: "password")                                                 
Traceback (most recent call last):                         
        1: from (irb):1                                    
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "users" does not exist)                          
LINE 8:  WHERE a.attrelid = '"users"'::regclass    
                            ^                         

from journal.

inoda avatar inoda commented on September 8, 2024

You need to run rake db:migrate

from journal.

alexkutsan avatar alexkutsan commented on September 8, 2024

Oh, thanks!
Sorry for so many questions.

Looks like user successfully created, but on localhost:3000 I have some errors:

Screenshot from 2019-12-03 21-54-08

from journal.

alexkutsan avatar alexkutsan commented on September 8, 2024

And error after pressing migrate button :

Screenshot from 2019-12-03 21-55-05

from journal.

inoda avatar inoda commented on September 8, 2024

you are missing ENV vars. see this about required ENV vars for encryption: https://github.com/inoda/journal/blob/master/docs/homebrew_install.md

from journal.

alexkutsan avatar alexkutsan commented on September 8, 2024

Thank you so much! Looks like successfully installed it and runned from docker. I will create Dockerfile, docker compose and instructions.
Screenshot from 2019-12-03 22-04-36

from journal.

inoda avatar inoda commented on September 8, 2024

@alexkutsan That's awesome news!! Thank you for taking the time to do this ⭐️

from journal.

koterpillar avatar koterpillar commented on September 8, 2024

Sorry for stealing this, I've made a Dockerfile in #8 - @alexkutsan maybe we can collaborate there?

from journal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.