Reputation: 143
so I am quite new to programming and am trying to set up a parse dashboard through Heroku and link it to my Xcode project.
I first went to github and clicked the button deploy to heroku https://github.com/ParsePlatform/parse-server-example I then set up my app with all the relevant details like appID, masterKey etc
After this, I downloaded the blank Xcode project from the parse website and filled out my details (appId etc)
The project ran successfully and data was sent to Heroku under Heroku mongoDB.
Then to set up my parse-dashboard, I installed parse-dashboard in terminal by doing the following commmand: 'sudo npm install -g parse-dashboard' After this I put in the following details in terminal: appId ... --masterKey ... --serverURL ... --appName ...
I then followed the url to my parse dashboard and was given the error message "server not reachable: server version too low"
Does anyone have any suggestions on how to fix this? If you could bear in my mind the fact that I am new to programming in your answer, that would be great!
Thanks in advance.
Archie
Upvotes: 2
Views: 959
Reputation: 15042
You have to update your Parse Server to a newer version in order for it to work with the Parse Dashboard.
Heroku is very convenient in that you deploy code using a versioning system, most popular git. If you are not using it yet for developing code it is very recommendable to take a look at it as it will structure and simplify your code development work.
The Deploy
button on Heroku created a Parse Server of the version that was available at that time. It will not automatically update when a new version of Parse Server becomes available. This would also not be wanted because as a developer you would want to test if your code is compatible with the new version of Parse Server. Sometimes you might have to tweak your code here and there - that is what the change log of Parse Server is for that is always good to read before updating to the new version.
To update Parse Server you will have to fetch the current deploy of Parse Server that is on Heroku to your local computer.
git clone https://git.heroku.com/<YOUR_HEROKU_APP_NAME>.git parse-server
cd parse-server
git remote add upstream https://github.com/ParsePlatform/parse-server-example.git
git fetch upstream
git merge upstream
. If you are getting merge conflict messages at this point then resolve them by referring to here.git push heroku
. This can take some time and will restart your Heroku dynos. You can open the Logs on the Heroku dashboard to see if the Parse Server is restarting successfully. If there are errors you can correct them by editing the corresponding files locally, commiting the changes and pushing again to Heroku as you did in this step.Parse Server is currently at 2.2.9. If you have a live app it would be recommendable to test if your app still works after the update in a test environment prior to the production environment .
Upvotes: 2