How I Setup Rails 7.1 for Docker Development
Вставка
- Опубліковано 7 січ 2024
- Let's take a look at how I personally setup a quick little Rails 7.1 Docker Dev environment.
Checkout my course(s) at: learn.deanin.com
Source: github.com/Deanout/docker7.1
Join this channel to help support these videos:
/ @deanin
Follow me on social media:
linktr.ee/deanin
If you liked this video, please consider subscribing: t.co/RZ4EwP0F2a
#Deanin #Software #Programming
It's been a while, but I'm back from vacation! :)
(and also still playing Runescape. Add me @deanin) LOL
Welcome back, have you heard of Devcontainer? It's feature from Docker. It sounds more suitable.
This is exactly what i was waiting for a UA-camr to drop, I'm glad its from you 😊
Good health in the new year! Good to hear you!
The King is back, let's goo !
amazing tutorial, thanks so much for it
Great video
Very Useful Video : )
🎉🎉Thank you
I should be thanking you for being here! ♥️
In which environment do you run the rails command? It seems like a shell of the host operating system; shouldn’t you run
“docker run … rails” instead?
My friend do a deployment docker one please 😅
Where you been?
Took some time off to enjoy the holidays with my family. Started to get a little burned out too, so I've been playing RuneScape in my free time haha
Rails Error: Unable to access log file. Please ensure that /rails/log/development.log exists and is writable (i.e. make it writable for user and group: chmod 0664 /rails/log/development.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
bin/rails aborted!
Errno::EACCES: Permission denied @ rb_sysopen - /rails/config/master.key (Errno::EACCES)
/rails/config/environment.rb:5:in `'
Tasks: TOP => db:prepare => db:load_config => environment
(See full trace by running task with --trace)
hey I'm getting this error when I try to run the docker run -p 3000:3000 -v $(pwd):/rails video command, I already gave permissions to the entrypoint file :/ is there something else that needs to be done?
i fixed it, the problem was that I followed the tutorial with the root user, in case someone runs with the same error, just change to your normal user and it will work and it wont messup the permisions