-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Can we Install the dashboard on Heroku,? #159
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
Comments
Hey @wallydsyh, Take a look here: https://github.com/ParsePlatform/parse-dashboard#deploying-the-dashboard The section says, "If you are deploying the dashboard, then localhost urls will not work." Are you still using localhost urls? |
Thanks you for the link . but it seems like its not available anymore. |
@wallydsyh my fault, fixed it. Go ahead and try it again. That section should point you in the right direction. If it works on localhost perfectly, that's great! If you want to deploy the dashboard anywhere you will have to make some changes to your URLs. Did you make changes to your URLs or are you still using localhost URLs in the code you deployed to Heroku when you got the Application Error? |
Actually when i deployed the app on heroku i changed the URL here is how it looks like the Url is the Url in which i install the Parse Server. i don't really know which URL i should pass in the "serverUrl" |
@wallydsyh are you still getting the heroku application error? I just tried this with these config: {
"apps": [
{
"serverURL": "https://your-app.herokuapp.com/parse",
"appId": "your_app_id",
"masterKey": "your_master_key",
"javascriptKey": "your_javascript_key",
"restKey": "yor_rest_key",
"appName": "cover-migration"
}
],
"users": [
{
"user":"[email protected]",
"pass":"password"
}
]
} but there seems to be another error now, an empty page with this error: |
Excatly, i have the same thing , a blank page too. you know what is causing it ? |
We've pushed a new version to |
@drew-gross I'm still getting "Unexpected token <" when I deploy to Heroku |
Could you open a new issue describing how you are installing and deploying? |
I had the same problem, and found bundle.js was empty (ignored by .gitignore). |
@flyingmate I tried deleting /bundles line in .gitignore file, but this didn't solve the problem for me. I still get the same blank page with "Unexpected token <" error in the source. Did you change anything else to possibly fix this issue? @drew-gross would you like me to open up a issue for this? I will include all the steps to reproduce. Thanks |
@Apptation you need to check if the asset files under pubilc/bundles folder are deploying to heroku correctly. [Unexpected token <] issue must be caused by the absence of asset files |
@flyingmate there is no public/bundles folder in the repo. Do I misunderstand or am I missing something? |
@Apptation you should 'npm install', then you will have bundles folder under Parse-Dashboard/public. And you need to set your apps on parse-dashboard-config.json file before deploying |
@flyingmate That fixed the obvious problem. Running npm install locally, and then pushing to Heroku Thanks! Running Parse Dashboard smoothly on Heroku now. |
@Apptation :) |
I really appreciate this thread, but it took me far too long to come across it before I finally got my Parse Dashboard deployed and working. To keep track of it for myself, I created a walkthrough at https://www.andrewcbancroft.com/2016/04/17/deploying-parse-dashboard/ . I would be interested in contributing this walkthrough or something like it to the docs of this project to help others out if that'd be well-received. I just created it on my blog so that I, myself could remember the steps. In any case, I'm hoping the post sheds a little more light on how to fix the "Unexpected token <" error. |
Looks good to me. A PR adding the link to the README would definitely be accepted! You might be interested to know that we also have a |
Thanks Drew - I'll work something up! I don't mind extracting the content from my blog and embedding it directly into the README somehow if that's more appropriate. The |
The |
Hi Does anybody know how to help with my issue, so i got my dashboard loaded to heroic where i was displayed with the 'Parse Dashboard can only be remotely accessed via HTTPS' i then went in to my config variables on heroku and added the PARSE_DASHBOARD_ALLOW_INSECURE_HTTP now all i get is my app saying 'unable to connect to server' when i open the web inspector it says that its being blocked. 'was not allowed to display insecure content from' then my parse server url can anybody help me. its my last hurdle. Thanks in advance |
managed to get it up on heroku, this is the best working tutorial i've found: https://www.codementor.io/nodejs/tutorial/deploy-parse-dashboard-on-heroku for heroku, you will need to set the config variable even if you use heroku's https path
also --allowInsecureHTTP in the Procfile has no effect on heroku, you can drop that. guessing it's different with an actual docker setup. i'm guessing heroku's free https uses a pass-thru so the parse-dashboard see's it as not real https, if you buy a certificate that's a different story. |
I'm using the parse dashboard as a middleware with my parse server on heroku. adding the PARSE_DASHBOARD_ALLOW_INSECURE_HTTP doesn't seems to work. Any idea on how to make it work? i tried to run the parse dashboard locally to connect to it doesn't work as well. but of course running the entire parse server + parse dashboard middleware works locally Update: got it working by following @warrenca #46
|
Instead of pushing the Variables set in Heroku's settings: Any pointers? I'm sure many people would prefer this method, rather than pushing secret masterKey/passwords to Github. Even in a private repo, it's a bad practice. Thanks in advance! |
@markmssd I would like to add that removing the |
@krzykz For now, I used a workaround. I used P.S: instead of removing the procfile, you can modify the commands to use inside it. Instead of the default command telling it to use the config file, you can change it to |
Is it still secure on Heroku after using |
I have set my value in Parse-Dashboard/parse-dashboard-config.json then i push git on my account. After try to deploy on herocku, But got below error, So, i change value to "scripts": {"start": "node ./Parse-Dashboard/index.js --config ./Parse-Dashboard/parse-dashboard-config.json --allowInsecureHTTP=1"}. Then also getting same error. |
Hello,
I was wondering if we can install the Dashboard on heroku.
I just tried and got this error

if you have any idea. please
Thanks you.
The text was updated successfully, but these errors were encountered: