Activity for Taeirâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Why shouldn't one run a production server in Docker? Assuming you set it to production mode in the documentation, I think it's mostly fine. As far as I know the following features don't work in the docker setup: Redis data is not stored outside of docker, restarting loses all data in redis (caches, unread circles for categories, user settings, and ... (more) |
— | 7 months ago |
Answer | — |
A: Warning about ruby version when moving to qpixel installation directory with RVM I believe that rvm has a mechanism where it will automatically switch to the correct ruby version based on the lockfile. So if the lockfile of an application were to say: `ruby '3.1'`, rvm will detect that and automatically switch to using the correct Ruby version for the project out of the potentia... (more) |
— | 9 months ago |
Answer | — |
A: How to get QPixel bundle install working without sudo privileges on Debian? Disclaimer: I use rbenv rather than rvm for installing ruby and have not tested the suggested setup locally. Rather than install bundler via apt, install it via rubygems such that it uses your rvm installed version of ruby. (after `sudo apt purge bundler`) ``` gem install bundler ``` (don't... (more) |
— | 10 months ago |
Answer | — |
A: How to remove the "This site is in development mode!" message with local QPixel? In general: if you are seeing that message you have not configured your instance to be in production mode. The warning is there because certain protections and checks are not enabled in development mode, and it should not be used like that in production. When running in production mode, the messag... (more) |
— | 10 months ago |
Answer | — |
A: Database migration between Codidact and SO for Teams I'm afraid this is not really a use case that was envisioned and that Codidact has no support for this. But actually the problem in doing this at all is that SO for teams (to my knowledge) does not offer any import functionality. We are no longer using it at the university where I work, so I can't do... (more) |
— | 11 months ago |
Answer | — |
A: How to set up a Production environment I've added a much more detailed server set up guide for setting up self-hosted instances aimed at system administrators. You can find it on the codidact wiki at https://github.com/codidact/qpixel/wiki/Setting-up-a-Self-Hosted-Instance (more) |
— | over 1 year ago |
Answer | — |
A: Categories aren't seeded I do not really know why `rails db:schema:load` stopped giving output, but it still does create all the tables as intended. The seeding of categories did indeed break due to rails being more strict on required elements for its relations. I have addressed this issue in https://github.com/codidact/qpix... (more) |
— | over 1 year ago |
Answer | — |
A: How should I fix this incorrect error message (don't quite understand the code) Rails has a whole validation logic for showing nice errors whenever things are not valid. What you are adding an error to is the tags "field" of "Post" (in `app/models/post.rb` you will see a `hasmany :tags`). Internally, rails also uses this information when you would programmatically check "which p... (more) |
— | over 1 year ago |
Answer | — |
A: How does caching work in qpixel? Where are the entry points? How is caching done in QPixel? Note: this answer is based on my understanding of the code after setting up a self-hosted instance. Caching happens in QPixel in multiple locations. The primary one is a so-called Redis cache, which is also set as the Rails cache (`Rails.cache` in the code, but you ... (more) |
— | over 1 year ago |
Answer | — |
A: How can I remove a category from a community? To delete anything that cannot be deleted through the interface (if you really want it gone), I would recommend doing it in the rails console. Rails has support to indicate what to do with associated entities upon deletion, and some of the models have this specified for them. These rules define for e... (more) |
— | over 1 year ago |