Installation Guide
Steps to install Seed Surveys in your own Server:
SSH into the server
ssh root@YOUR_SERVER_IPInstall Docker
apt update apt install -y docker.io docker-compose-plugin systemctl enable --now docker docker psClone the Repo
git clone https://github.com/seed-hypermedia/seed.git seed cd seedFetch the latest branch
git fetch origin git checkout Form-with-seed-docs git reset --hard origin/Form-with-seed-docsConfirm the branch/commit
git status git log --oneline -5You should see:
On branch Form-with-seed-docsCheck the web config
cat /opt/seed/web/config.jsonFor Seed Surveys private feedback, it should include:
{ "feedbackDestinationAccountUid": "z6MkkeXDXo4p5y483NqxnMjZKbE4VAv8GPXp3kQ5JGYbTTsR", "feedbackDestinationLabel": "Seed Surveys", "feedbackSignerAccountUid": "z6MkmYhMohZM7agevqQdejj56Y6ZQNVVMw2Mq3LUmER4jNtf", "feedbackDestinationCapabilityCid": "bafy2bzacedh3rr5ew5nvy4exly2zietju3dkqawyqzciyjkevtqewwp7kdq7k", "feedbackDocumentVisibility": "private" }If you edit it:
nano /opt/seed/web/config.jsonValidate JSON:
jq . /opt/seed/web/config.jsonBuild the web Docker image
Run from
~/seed:docker build -t seedhypermedia/web:branch-test -f frontend/apps/web/Dockerfile .Restart the web container
seed-deploy restart webCheck logs
seed-deploy logs webSubmit the feedback form, then look for:
[feedback] publishedThe successful new flow should show:
publishedBlobs: 3 destinationPublish: { origin: 'https://seed-surveys.hyper.media' }pushProgress.blobsAnnounced: 0may still happen, but it is now less important because the signed blobs are also published directly to Seed Surveys.Test the feedback page
Open:
https://nodosdeconocimiento.es/feedbackSubmit at least one feedback field.
Verify the created document
Copy the
documentIdfrom the web logs, then run:curl -sG 'https://seed-surveys.hyper.media/api/Resource' \ --data-urlencode 'id=PASTE_DOCUMENT_ID_HERE' \ | jqExpected result:
{ "json": { "type": "document" } }If it returns:
"type": "not-found"then the document did not reach Seed Surveys.
Common mistakes
Wrong Docker command:
docker build -t seedhypermedia/web:branch-test . -f frontend/apps/web/Dockerfileseed-deploy restart webCorrect command:
docker build -t seedhypermedia/web:branch-test -f frontend/apps/web/Dockerfile .Then separately:
seed-deploy restart web
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime
Powered by Seed HypermediaOpen App