HubPress / hubpress.io

A web application to build your blog on GitHub
MIT License
2.81k stars 2.62k forks source link

Write a procedure about setting up HubPress in an Organisation repo #446

Open ghanIn-dev opened 8 years ago

ghanIn-dev commented 8 years ago

I use github host and github id , password what' wrong??

anthonny commented 8 years ago

Hi @ghanIn,

You have a typo in your config.json file:

{
  "meta": {
    "username": "ghaIn",
    "repositoryName": "ghanIn.github.io",
    "branch": "master"
  },
  "theme": {
    "name": "Casper"
  }
}

The username must be ghanIn, not ghaIn

michaltrzesimiech commented 8 years ago

Hi there,

I wonder if you can help me out, please. I'm not being let through despite having my config.json file looking alright:

{
  "meta": {
    "username": "michaltrzesimiech",
    "repositoryName": "orkiestraracjonalna.github.io",
    "branch": "master"
  },
  "theme": {
    "name": "Casper"
  }
}

Scenarios I've tried so far:

Result: Password field gets underlined red, but otherwise no change

anthonny commented 8 years ago

Hi @michaltrzesimiech,

You must set the username with the name of the owner of the repository, here orkiestraracjonalna:

{
  "meta": {
    "username": "orkiestraracjonalna",
    "repositoryName": "orkiestraracjonalna.github.io",
    "branch": "master"
  },
  "theme": {
    "name": "Casper"
  }
}
michaltrzesimiech commented 8 years ago

Hi @anthonny. Thanks for helping me out. I've actually tried that approach too, but then orkiestraracjonalna is an organization. Since with

{
  "meta": {
    "username": "orkiestraracjonalna",
    "repositoryName": "orkiestraracjonalna.github.io",
    "branch": "master"
  },
  "theme": {
    "name": "Casper"
  }
}

I can't log in as organization orkiestraracjonalna* nor as user michaltrzesimiech, would that mean I won't get authorization unless and until I host my blog as michaltrzesimiech [user, not organization]?

anthonny commented 8 years ago

in the repository orkiestraracjonalna.github.io you must add you account michaltrzesimiech as collaborator (in the settings of the repository) with write authorization

michaltrzesimiech commented 8 years ago

Of course! I forgot about that. Thanks @anthonny!