Open PaulMorris opened 7 years ago
A few further possibilities that aren't in the current PR #477:
As discussed with @PaulMorris, I'm noting which items from his notes I think we should change in INSTALL.
Had to enter psm psm for user and password, but this was not mentioned in the docs. Might be worth being more explicit that this is needed and which user/psw. (Where exactly was this?)
Yes, please add this.
Maybe use different usernames/passwords for the db and wildfly user accounts, say psm and psmdb, to make it easy to differentiate the two.
Yes, I think that's a good idea.
Maybe document how to start over with a clean slate if things go wrong. (I think there's a script for this?)
Yes, that's a good idea. I think you're thinking of scripts/rebuild-and-change-schema-for-testing.sh
.
Would it be worth showing how to test the db setup by logging into it directly from terminal?
I think this gets to "how familiar do we expect people to be with PostgreSQL?" I don't want to provide a psql
tutorial in our INSTALL docs. It might be worth pointing to an existing one, though.
Would it be worth showing how to test the db setup by logging into it directly from terminal?
A one-liner that logs into the db, dumps schema and tests for presence of a keyword might be doable as a test.
Actually, we have tests. Some of those tests presumably verify that the db is there, accessible, and has the schema. I wonder how hard it would be to run those on our db (as opposed to on a db created by a test fixture). It would be nice to be able to say "Yep, your db looks good" or "Your db is borked for X reason."
Below are notes I took while installing the PSM based on INSTALL.md. I tried to make a note every time I was confused about something, if even just a little bit. So not all of these items need to lead to edits, but they're all here for completeness.
NOTES
The biggest issue was I read the 'requirements overview' section and started installing things at that point, before getting to 'installation instructions'. (Sumana has some ideas on how to avoid this problem.)
When installing wildfly 10, the wildfly website talks about 'full' and 'web' versions of wildfly. There ended up being no difference in what you install, but it was slightly confusing for a moment. So maybe mention this in some way, or maybe not worth it.
On Ubuntu 16.04 the postgresql-9.6 package is not found:
even after $ sudo apt update...
It worked after adding the apt repository per https://www.postgresql.org/download/linux/ubuntu/
"Stop the server if it is already running" How do I know if it is running? Should it be running? Maybe a little more disclaimer here in the wording that it shouldn't be running yet.
Warnings on starting wildfly just for the record. Nothing to do here, there's already a "warnings are ok" message in the doc.
Had to enter psm psm for user and password, but this was not mentioned in the docs. Might be worth being more explicit that this is needed and which user/psw. (Where exactly was this?)
This line was slightly different than what the docs mentioned: 13:28:04,474 INFO [org.jboss.as.server] (management-handler-thread - 6) WFLYSRV0010: Deployed "postgresql-42.1.4.jar" (runtime-name : "postgresql-42.1.4.jar")
In the docs is: 15:32:15, 773 INFO [org.jboss.as.server] )ServerService Thread Pool --37) WFLYSRV0010: Deployed "postgresql-42.1.1.jar" (runtime-name: "postgresql-42.1.1.jar")
Docs say: You will need a database user, and a database owned by that user. Create them, and make a note of the password for the database user:
I thought psm in the line above was the password (not the user name) and changed it to my password at first.
Maybe a note about 'in the wildfly directory' for those commands? Generally more clarity on what directory the commands are run from would be helpful.
'Fill in your local properties:' is vague, maybe reword for more explicitness.
"log in with your management console username and password" maybe add "if you are not already logged in"
"Deployments > Deploy an Application > start" Maybe more specific wording? tabs at top vs links in page, etc.
"Deployments > Add > Upload a new deployment > browse to file." Which file do I browse to to deploy? Could be clearer here.
Jason helped set me up with: .pgpass in home directory which allows no password entry every time for postgres Maybe add this to the docs?
Maybe more of a Table of Contents at top for better road-map / overview.
Under build docs, which directory for the gradlew command? (psm/psm-app)
on doc build, 3 warnings:
:cms-web:apiDocs /home/paul/ots/psm/psm-app/cms-web/src/main/java/gov/medicaid/controllers/EnrollmentPageFlowController.java:294: warning - @param argument "ticketId" is not a parameter name. /home/paul/ots/psm/psm-app/cms-web/src/main/java/gov/medicaid/controllers/EnrollmentPageFlowController.java:767: warning - @param argument "entity" is not a parameter name. /home/paul/ots/psm/psm-app/cms-web/src/main/java/gov/medicaid/controllers/EnrollmentPageFlowController.java:784: warning - @param argument "entity" is not a parameter name. 3 warnings