-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation Improvement - Replace the '<...>' placeholders by the real ones #69
Comments
This issue #44 offers some solution, but I don't want |
Hello ! I'm sorry about the struggle you encountered. I'll be pushing a PR to try to address this and explain the placeholders in more details. In the meantime, to come back to your specific issue, the main question can be: The HTTP/HTTPS case is the one that should just work by following the README. |
Your question assumes that I already have an index, but as a newbie I don't. But the tests (you pointed out with the link) contain valuable information, especially this file will help me set one up: What I was asking in bold, is all here in the tests now I think. |
The install/configure procedure I followed is documented as a script. #!/bin/bash
alex_dir=~/alexandrie
crate_index_git_url=$1
while ! git ls-remote -h $crate_index_git_url
do
read -p 'crate_index_git_url: ' crate_index_git_url
done
if ! curl --version
then
sudo apt update
sudo apt install -y curl
fi
if ! ~/.cargo/bin/rustup --version
then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
else
rustup update
fi
if [ -d "$alex_dir" ]
then
cd "$alex_dir"
git pull
else
git clone https://github.com/Hirevo/alexandrie.git "$alex_dir"
cd "$alex_dir"
fi
cargo build
mkdir -p crate-storage
if [ -d crate-index ]
then
cd crate-index
git pull
else
git clone $crate_index_git_url crate-index
cd crate-index
fi
if [ ! -f config.json ]
then
cat >config.json <<EOF
{
"dl": "http://$(hostname):3000/api/v1/crates/{crate}/{version}/download",
"api": "http://$(hostname):3000",
"allowed-registries": ["https://github.com/rust-lang/crates.io-index"]
}
EOF
git add config.json
git commit -m "add config.json"
git push
fi The myhello project's .cargo/config file:
After logging in publish worked
|
(Sorry for the delayed response) Happy to hear that you were able to make progress, I've opened #70 to improve documentation around setting up the crate index, which, I have to agree, was notably overlooked. As part of that PR, I have also integrated a slightly modified version of your script in the user guide, with a link to it from the project's README. This issue is set to close automatically once #70 gets merged. |
I have looked at the documentation updates, and agree to close this. |
Cloning, building, running all worked I even created my account and login on my own Alexandrie server at 127.0.0.1:3000, all within a few minutes.
But for hours I cannot figure out from the provided documentation how to complete configuration of this server and how to configure a simple hello app (cargo new hello) to be able to publish to this server with cargo. Even if every parameter has descriptive names in the config file, I still don't know how to determine their values.
Please provide a specific working example.
The
Replace the '<...>' placeholders by the real ones
instructions are not helpful inhttps://hirevo.github.io/alexandrie/getting-started.html
Otherwise congrats to the nice and very important work!
The text was updated successfully, but these errors were encountered: