eureka
eureka copied to clipboard
Pushing new idea fails
I just discover Eureka, from a tweet ! The idea sounds great and I just want to try it out
I have created a new private repository on GitHub with a Readme and clone it via SSH into my laptop.
When I add one idea into eureka, I get the following error
Adding and committing your new idea to main..
Added and committed!
Pushing your new idea..
ERROR eureka > No authentication method succeeded
Search into the documentation to see if some authentication from Git is needed and as I found nothing, I ask here if there is some configuration needed, or how could be the problem fixed ?
Thanks in advance
cc @simeg
@GridexX Are you able to manually push any changes by git commands for your idea repo? Make sure you are able to push and have access right to push for that repo
@nisargparikh69 I have the exact problem.
I push on my git repo without problems via ssh keys so the issue is not there in my case.
I actually wrote my own small bash script to push changes automatically using inotifywait
and it works like a charm. It is basically the same idea as eureka but with very little knowledge and programming skills. I'll leave the code here if anyone wants to use/modify it:
#!/bin/bash
# Routes and configurations
REPO_DIR="/my-local-repo-dir/ideas/"
FILE_TO_WATCH="notes-ideas.md"
BRANCH_NAME="main"
while true; do
# Wait until event CLOSE_WRITE is detected in the file
inotifywait -q -e CLOSE_WRITE "$REPO_DIR$FILE_TO_WATCH"
# Do the commit and push
cd "$REPO_DIR"
git add "$FILE_TO_WATCH"
git commit -m "Update in $FILE_TO_WATCH"
git push origin "$BRANCH_NAME"
done
Then I just created an alias on my .zshrc: alias idea="micro /my-local-repo-dir/ideas/notes-ideas.md"
. Change micro
to whatever text editor you want. Then source .zshrc
and type idea
in your terminal to edit the file (notes-ideas.md, in my case) and save changes to automatically push them to your repo.
All this presumes that you have already created your repo on github (or other service you use) and that you don't use user+password to upload your changes.