Comments (15)
@alexkutsan I have no experience with Docker but would accept a PR if you created a Dockerfile for this!
from journal.
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.
@alexkutsan This is a standard Rails app. I imagine there are some guides out there on running Rails on Ubuntu!
from journal.
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.
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.
@alexkutsan You need a postgresql db server running
from journal.
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.
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.
You need to run rake db:migrate
from journal.
Oh, thanks!
Sorry for so many questions.
Looks like user successfully created, but on localhost:3000 I have some errors:
from journal.
And error after pressing migrate button :
from journal.
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.
Thank you so much! Looks like successfully installed it and runned from docker. I will create Dockerfile, docker compose and instructions.
from journal.
@alexkutsan That's awesome news!! Thank you for taking the time to do this ⭐️
from journal.
Sorry for stealing this, I've made a Dockerfile in #8 - @alexkutsan maybe we can collaborate there?
from journal.
Related Issues (20)
- [Feature Request] Full text search HOT 6
- 500 error when trying to share a post HOT 3
- Puma should be updated to >3.12.6 HOT 1
- Heroku deployment fails HOT 1
- Dockerfile ruby version HOT 1
- Blocked host: journal.xxxx.com HOT 2
- Remove prompts HOT 1
- Set/Edit date of entry HOT 1
- ISO8601 for dates HOT 1
- Data import and export HOT 3
- Sharing posts: ERR 500 HOT 2
- Docker Compose file? HOT 2
- Add docker image to hub.docker.com
- issues with docker-compose.yml HOT 1
- rbenv `/usr/bin/env: ‘bash’: No such file or directory` when creating a systemd service HOT 1
- end of life ruby 2.6.6 HOT 1
- DockerCompose Ruby Error HOT 1
- Adding SMTP configuration
- app/bin/docker-run not found error on ubuntu arm HOT 8
- Error while trying to install with docker-compose.yaml HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from journal.