The discussion revolves around the best option for self-hosting Discourse, with user NateDhaliwal seeking advice on whether to use a Raspberry Pi or Docker for deployment. merefield clarifies that Docker is the preferred method for both Pi and other setups, emphasizing the standard install process. Jagster suggests using a Pi for cost savings and personal projects, while supermathie warns that development on a Pi may be slow due to performance limitations. NateDhaliwal shares struggles with installation attempts, including issues with bundle install and container restarts. merefield recommends the production install for reliability. Despite past difficulties, NateDhaliwal decides to proceed with the Pi setup, acknowledging the value of hands-on experience. merefield encourages trying it anyway to make an informed decision.
I have a rasp lying down and holding my personal photo gallery, for example. It doesn’t waste electricity too much and I don’t expose my laptop to every other users. Because I’m using already Discourse as a private notebook I could use raspberry for that because I don’t have need to access it from outside world and at same time I could save close to 10 buck a month VPS bills.
That is one reason. Matter of choise, nothing else.
Alright. So here are the issues I encountered. Note that this was on my Pi.
First, I tried setting it up with the Docker installation guide for development. I encountered a problem eventually when running d/rails s, as it said that the container was restarting, and I had to wait until it has started. I simply stopped and deleted the container (this may not have been the best course of actions).
Then, I attempted to try the Ubuntu/Linux development guide (this one), but also couldn’t continue when I tried bundle install, saying that bundle was not found. I attempted to clone the repo to another folder and try, but to no avail.
Eventually, I rm -rfd both folders and uninstalled Docker, preparing for another battle with the terminal tomorrow.
Do you guys @merefield and @Jagster have any suggestions?
I find myself back here after a few disastrous attempts and steering clear of my Pi for over a year.
I still don’t know which I can do, like does a dev environment work on a Pi? Or should I use a production one on that instead? I’m leaning towards a development one, but is it possible to do so?
I mean, I have one lying around and wanted to make it have some use, like running a development environment, amongst other things, just for fun (and dev, so I’m less reliant on Theme Creator).
So the Pi might be too slow? If I add swap, would it help? Or would production be better in this case? Thanks.