Comments (4)
Hi @TrimperAlex
It looks like there might be an issue with your database configuration. Here are a few things you can try:
-
Check your database.yml file in the config directory of your app. Make sure that the default section is defined with the correct adapter, database name, username, and password for your local development environment.
-
If the database.yml file looks correct, try running bundle exec rails db:create to create the database for your app.
-
If that doesn't work, try running bundle exec rails db:reset to drop and recreate the database from scratch.
-
If none of the above steps work, you might want to try deleting your Gemfile.lock file and running bundle install again to ensure that all of your dependencies are up to date.
Hopefully one of these steps will help you get your app up and running locally!
from refinerycms.
Hi @TrimperAlex
The guides are very old and are not updated. I think the issues is due to your used Ruby version. Try to install Ruby 2.6.X and try again.
Alternatively, if you want to only test the Refienery and see, how it looks like, you can check http://demo.refinerycms.com . The admin link is
http://demo.refinerycms.com/refinery and credentials are demo
for username and demo
for password. Feel free to play with it, the database is restored 2 times per day.
Another way is to fork from my repository https://github.com/Matho/refinerycms-example-app - this is exactly the version which is deployed at demo page.
If you want to start developing and use this repo as base of your project, do not forget to revert few commits, like this one Matho/refinerycms-example-app@6a33b02
If you are familiar with Docker, there is Dockerfile in that repo - https://github.com/Matho/refinerycms-example-app/blob/master/Dockerfile . But by default the Docker is using aarch64
architecture - for Raspberry PI, where I'm hosting the project. If you would like to use Docker on non-Raspberry PI, you will need to change the base image. You will probably find amd64 on Docker Hub, or alternatively you can build your own.
Note: Running projects on Ruby 2.6.X could be problem on newest operating systems. So Docker with old 2.6.X Ruby is a way, but not recommended. You can try to update to latest Ruby 3.2.1 (at the time of writing this reply) - see comments here #3526 . Main branch of the Refinery project dosnt support 3.X.Y yet
from refinerycms.
Thanks @atiqueakhtar, I should've tried any of those things. You're so kind I really appreciate your help.
And thank you @Matho , I am starting to use development environments like docker so I will absolutely give that a try. I am using Ruby 3.1.2 so I will try an older version.
Thanks again!
from refinerycms.
Please, reopen the issue. The problem exists because of breaking change in Psych 4, which comes with Ruby 3.1 and Refinery CMS should adapt its code to it:
Upd.:
I reread issues here and I see, there is already work on upgrading refinery for supporting of Ruby 3.1.x. So, I'm not sure, if this issue should be extra open.
from refinerycms.
Related Issues (20)
- Rails Server Error With New Install HOT 3
- Demo website is broken HOT 16
- URI.unescape is obsolete HOT 6
- Trying to get in touch regarding a security issue HOT 1
- Deploy to Heroku button failing to deploy HOT 1
- Rails 7.0.1 and Ruby 3.1.0 HOT 2
- undefined method `new' for BigDecimal:Class HOT 2
- Unable to access the CMS pages link in ruby project as well as contain of CMS in ruby project HOT 1
- Igeadunbimalato happy with me
- url method causing n+1 queries
- Can't Run Refinery - active support errors HOT 9
- SQLite3::SQLException: no such column: refinery_pages.custom_slug HOT 1
- Refinery::Resource not removed from cache on destroy HOT 2
- `superclass mismatch` on Rails/Zeitwerk reload HOT 1
- Bundle fails on ruby 3.2.1 HOT 1
- rails 6 support HOT 1
- Mime types bug in refinerycms-images and/or refinerycms-dragonfly? HOT 1
- Rails 7 support HOT 3
- `refinerycms-core` depends on a version of `jquery-ui-rails` with XSS vulnerabilities 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 refinerycms.