| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
… rubocop fixes. reran Brakeman
There was a problem hiding this comment.
Looking good :)
Sorry, something went wrong.
|
@briri @benjaminfaure @pengyin-shan @martaribeiro Not sure why the setup fails for me. As always it must be something on my PC. I am on an Ubuntu PC and I am using RVM to set the Ruby to version 2.7.2. Note I am using a newly cloned version of roadmap. I guess others are using their current. So don't see error as I won't have old recaptcha properties.
I have run the setup several times and it fails at db setup:
|
Sorry, something went wrong.
|
did the .env and credentials files ever open up in the editor for you @johnpinto1? If you look at the 2 new config/credentials.yaml.[db] files you'll see the recaptcha settings. It should be creating those files and opening them for you to edit. I haven't used a PC though in over 15 years and don't a machine available to test with. @johnpinto1 I just pushed a change that attempts to set the EDITOR env variable based on whether the platform is Windows. I suspect that it may fail though when it tries to seed the credentials file. Can you have a look and try it out? If it doesn't work, can you use that Gem.win_platform? check and create versions of the following lines that will work for Windows? Feel free to make your changes to this branch (git fetch origin install-update && git checkout install-update)
|
Sorry, something went wrong.
|
@briri That sorted issue of credentials. I just need to sort issue with duplicate tables after running db:migrate.
|
Sorry, something went wrong.
|
excellent! You may need to delete the DB and start over from scratch. Sometimes a stalled installation can leave the DB in a state of limbo. |
Sorry, something went wrong.
|
@briri I am testing the setup with Postgres. It is failing because the annotations table is never created in the migrations. Am I misunderstanding something. I don't see a migration file for creating this table. Also with Postgres one has to run migrations twice at least because of the following error within a db:migrate because you can't change a type within a single transaction several times:
|
Sorry, something went wrong.
|
Thanks for trying it out @johnpinto1. I did some more reading on the new db:prepare and it looks like it runs: rails db:create && rails db:migrate && rails db:seed which is not what we want. I just switched it to use db:setup which runs rails db:create && rails db:schema:load && rails db:seed. There are some very old migrations in the db/migrations/ directory that attempt to manipulate data using ActiveRecord models that no longer exist, so db:migrate is impossible to run from scratch. |
Sorry, something went wrong.
|
@briri Phew that was the quickest fix. Yippee! up and running with Postgres using setup. Thanks. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Updated the ruby bin/setup script so that it:
Will update the wiki installation page once this is merged into main in the next release.
Should address the issue outlined here: #3216