Giter Club home page Giter Club logo

Comments (12)

gubacelar avatar gubacelar commented on June 4, 2024

Same here

from wiki-heroku.

gubacelar avatar gubacelar commented on June 4, 2024

In install.sh I change

VERSION=$(curl -L -s -S https://beta.requarks.io/api/version/stable) to
VERSION=$(curl -L -s -S https://raw.githubusercontent.com/Requarks/wiki-v1/master/CURRENT)

It install ok, but git not working and data is lost after dynos restart.

from wiki-heroku.

christopinka avatar christopinka commented on June 4, 2024

Deploy gets further with antoligy. Not clear how to setup oauth. Attempted setting up deploy keys and have local auth provider set to true. Getting error

2019-03-26T20:58:34.190207+00:00 app[web.1]: Error: You must enable at least 1 authentication strategy!

from wiki-heroku.

gubacelar avatar gubacelar commented on June 4, 2024

Deploy gets further with antoligy. Not clear how to setup oauth. Attempted setting up deploy keys and have local auth provider set to true. Getting error

2019-03-26T20:58:34.190207+00:00 app[web.1]: Error: You must enable at least 1 authentication strategy!

What have you change?

Just clone this project, and add your heroku git url

git remote add heroku https://git.heroku.com/my-wiki.git
git push heroku, or if you are on a branch, git push heroku mybranch:master

Also you need to change install.sh

VERSION=$(curl -L -s -S https://beta.requarks.io/api/version/stable) to
VERSION=$(curl -L -s -S https://raw.githubusercontent.com/Requarks/wiki-v1/master/CURRENT)

it should work.

from wiki-heroku.

christopinka avatar christopinka commented on June 4, 2024

What about changes to app.json and/or config.yml?

Just tried:

$ git clone https://github.com/Requarks/wiki-heroku.git
$ heroku create devnoops-wiki
edit install.sh
$ git commit -am "update version"
$ heroku open

getting:

'Application Error'
$ heroku logs

app[web.1]: 2019-03-27T15:08:17.275Z - error: [SERVER] Failed to connect to MongoDB instance. 2019-03-27T15:08:17.276635+00:00 app[web.1]: /app/wiki/node_modules/mongoose/lib/connection.js:723 2019-03-27T15:08:17.276638+00:00 app[web.1]: throw error; 2019-03-27T15:08:17.276640+00:00 app[web.1]: ^ 2019-03-27T15:08:17.276642+00:00 app[web.1]: 2019-03-27T15:08:17.276644+00:00 app[web.1]: Error: Invalid mongodb uri. Must begin with "mongodb://" 2019-03-27T15:08:17.276646+00:00 app[web.1]: Received: undefined

from wiki-heroku.

gubacelar avatar gubacelar commented on June 4, 2024

Sorry,
You need to create the heroku app from the wiki button first:

https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2FRequarks%2Fwiki-heroku&template=https%3A%2F%2Fgithub.com%2Frequarks%2Fwiki-heroku

You will notice that the build will fail, and then you clone project, change the remote for your heroku git remote.

No need to change app.json or config.yml, you will set your variables on that link for app creation,
after you change install.sh and push it, if your variables are correct you will have access to your wiki.

Creating the app with that url you will have all dynos already running for you.

If you dont want to use heroku pannel to set your variables, you can set then on app.json and probably will work.

from wiki-heroku.

christopinka avatar christopinka commented on June 4, 2024

Thanks for stickin with me

Similar outcome after retrying with below. What is mongodb required for? Backend isn't solely github?

how to set this in config.yml?

db: $(MONGODB_URI)

I chose the edit app.json route
$ git commit -am ""
$ git push heroku
$ heroku open
page has 'Application Error'
$ heroku logs

' app[web.1]: 2019-03-27T18:08:26.644Z - error: [SERVER] Failed to connect to MongoDB instance.
2019-03-27T18:08:26.645820+00:00 app[web.1]: /app/wiki/node_modules/mongoose/lib/connection.js:723
2019-03-27T18:08:26.645824+00:00 app[web.1]: throw error;
2019-03-27T18:08:26.645826+00:00 app[web.1]: ^
2019-03-27T18:08:26.645827+00:00 app[web.1]:
2019-03-27T18:08:26.645829+00:00 app[web.1]: Error: Invalid mongodb uri. Must begin with "mongodb://"
2019-03-27T18:08:26.645831+00:00 app[web.1]: Received: undefined'

from wiki-heroku.

christopinka avatar christopinka commented on June 4, 2024

I just provisioned mLab manually and the app is up it seems. Trying to figure out what login should be.

How do I set my wiki account username and password?

How do I setup github/gitlab ssh? It appears I need to provide the private key to the app somehow?

from wiki-heroku.

gubacelar avatar gubacelar commented on June 4, 2024

If you look on your app.json

"WIKI_ADMIN_EMAIL": { "description": "Email to use during root administrator account creation (default password: admin123)", "value": "[email protected]" },
default password: admin123)

You can enter in your Mongo's Dyno and check if there's any users.
I belive you have to enter a new user manually.

If you cant cript your password, you maybe can try install locally(https://github.com/Requarks/wiki-v1)
and copy user and password from your local mongo to your heroku dyno mongo.

from wiki-heroku.

christopinka avatar christopinka commented on June 4, 2024

ok. Thanks.

Looks like this might be a good idea for connection to github/gitlab

https://elements.heroku.com/buildpacks/poetic-labs/git-ssh-key-buildpack

from wiki-heroku.

christopinka avatar christopinka commented on June 4, 2024

No love connecting to github using ssh. Getting error

app[web.1]: { code: 1, 2019-03-27T21:54:02.643800+00:00 app[web.1]: message: 2019-03-27T21:54:02.643801+00:00 app[web.1]: 'git --git-dir=repo/.git --work-tree=repo pull origin undefinedfailed with code 1', 2019-03-27T21:54:02.643802+00:00 app[web.1]: stderr: 2019-03-27T21:54:02.643806+00:00 app[web.1]: "fatal: 'undefined' does not appear to be a git repository\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", 2019-03-27T21:54:02.643807+00:00 app[web.1]: stdout: '' }
any idea how I would set this if I have a heroku config env_var for GIT_SSH_KEY

# Only for SSH authentication: 125 privateKey: /etc/wiki/keys/git.pem

for basic auth I'm trying to use an OAuth token. Not working either. Same as above. Do I put the value of the token or the name of it in the config?

from wiki-heroku.

NGPixel avatar NGPixel commented on June 4, 2024

Fixed install script.

from wiki-heroku.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.