Changes for Fedora ruby 3.4 and rails 8
This commit is contained in:
@@ -1,6 +1,25 @@
|
||||
Mozo server backend README
|
||||
=====================================
|
||||
|
||||
Start the server for development:
|
||||
----------------------
|
||||
### Start couchdb
|
||||
Since in the Fedora Asahi on Macbook M1, couchdb is not an available package, it is build locally and started there:
|
||||
```
|
||||
cd ~/projects/couchdb/couchdb
|
||||
./dev/run --admin=admin:admin
|
||||
```
|
||||
|
||||
### Start rails
|
||||
Note that the couchdb admin password can be changed for better security:
|
||||
```
|
||||
COUCHDB_ADMIN_PASSWORD=admin rails s
|
||||
```
|
||||
|
||||
### Access the server
|
||||
The server should now be accessible using:
|
||||
https://localhost:3002/
|
||||
|
||||
TODO:
|
||||
------------------
|
||||
### Supplier app
|
||||
@@ -15,6 +34,17 @@ TODO:
|
||||
Application architecture
|
||||
-----------------------------------------------
|
||||
|
||||
Developing using SSL
|
||||
-------------------------
|
||||
When reading this, hopefully there will be a nice standardized solution, better than found at the time of writing this (2025-02-10)
|
||||
A nice solution seems to be using:
|
||||
* https://github.com/puma/puma-dev
|
||||
The fast and dirty way, without trusting certificates will be:
|
||||
https://spaquet.medium.com/setting-up-ssl-on-localhost-for-rails-development-with-puma-211574dbfb87
|
||||
|
||||
Also take a look at:
|
||||
https://jfbcodes.medium.com/using-rails-with-ssl-on-localhost-52d60f14a382
|
||||
|
||||
Building the product
|
||||
------------------------------------------
|
||||
1. Set the current routes to mozo-supplier client code (TODO: make way
|
||||
|
||||
Reference in New Issue
Block a user