How to set up a Production environment Question
3 answers
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
0 comment threads
Assuming you've followed the steps in the guide to setting up development, changing that to a production environment is relatively easy.
- Check your production configuration file (
config/environments/production.rb
) and make sure that it works for you. I can't tell you what's right here - it depends on your setup. The file is documented, so run through each option and make sure it's set to what you need. - Make sure you've run
rails assets:precompile
before booting your server, and make sure it's part of your deploy process. - Check your communities table. The community that you want to serve from a public web address will need it's
host
field updated - if you're serving fromtest.example.com:3000
then that's what thecommunities.host
value should be.[1]
-
If you try to access your community and get the error saying "No Community record found for Host="
test.example.com
", you've set the field wrong - it should be exactly what thatHost=
value is. ↩︎
0 comment threads
So in other words, the installation step Community.create(name: 'Dev Community', host: 'localhost:3000') should be:
Community.create(name: 'Dev Community', host: 'qpixel.domain.com')
Or not?
0 comment threads