Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Trying to run Methods 1 & 2 don't work #394

Closed
ljbennett62 opened this issue Apr 3, 2017 · 17 comments
Closed

Trying to run Methods 1 & 2 don't work #394

ljbennett62 opened this issue Apr 3, 2017 · 17 comments
Assignees

Comments

@ljbennett62
Copy link
Contributor

Using the "Deploy to Bluemix" button issues the same error as running Method 2:

I get the error "can't find cloud_config.json". I see the file in the following directory:

/BluePic/BluePic-Server/Sources/BluePicApp/

any ideas how to fix it. When I print the variable "path" that is the failing file "Configuration.swift" - it comes back as nil.

any ideas?

@tfrank64
Copy link
Member

tfrank64 commented Apr 3, 2017

@ljbennett62 Which method did you try? The Cloud Tools for Swift method or the manual method?

I assume you see this error on Bluemix?
Also, what branch of BluePic did you use?

@ljbennett62
Copy link
Contributor Author

both methods - 1) The Cloud tools and 2) the manual method. Yes - am seeing it in Bluemix. I am using the Master branch.

@ljbennett62
Copy link
Contributor Author

so got a bit further when I went in the code (Configuration.swift) and manually set:
let finalPath: String = "/Users/laurabennett/2017-NewRole/Code/BluePic/BluePic-Server/cloud_config.json"

I then get the following error when I do that:

image

@tfrank64 tfrank64 self-assigned this Apr 3, 2017
@tfrank64
Copy link
Member

tfrank64 commented Apr 3, 2017

There might be another issue here, but we at least need to find a fix for not being able to create new MCA Bluemix services (#396). MCA was replaced with App ID, so not having it can prevent successful app deployments.

@ljbennett62
Copy link
Contributor Author

@tfrank64 - HI Taylor - so are you looking into this?

@tfrank64
Copy link
Member

tfrank64 commented Apr 3, 2017

@ljbennett62 Yes, I am looking into it.

@ljbennett62
Copy link
Contributor Author

ok - tx - let me know if you need me to try something

@tfrank64
Copy link
Member

@ljbennett62 Would you be willing to try and deploy a new BluePic application? I've updated BluePic to use App ID which was part of the problem, since MCA was deprecated. I got it to work through both IBM Cloud Tools and the Deploy to Bluemix button, let me know if it works for you.

Note, you may still see Could not find cloud_config.json but it should still work because it can access environment variables on Bluemix.

@ljbennett62
Copy link
Contributor Author

yes - let me give it a try! tx

@ljbennett62
Copy link
Contributor Author

@tfrank64 - so the deploy to bluemix button worked!! yay! - now I am going to try to deploy locally. Thanx for the quick turnaround

@ljbennett62
Copy link
Contributor Author

btw - i just noticed you took out Alchemy and are now using Visual Recognition - are you planning to add NLU?

@tfrank64
Copy link
Member

Your welcome, glad it is working now!

We don't have plans currently to add NLU. The change you mentioned was because Alchemy Vision was deprecated in favor of Watson Visual Recognition.

@ljbennett62
Copy link
Contributor Author

@tfrank64 - so it gets deployed but when I click the URL in BM - the links on the app (using Chrome) don't do anything. "I'll sign in later" and "sign in with facebook"

@tfrank64
Copy link
Member

@ljbennett62 Well the facebook button is grayed out because it is not enabled right now. The sign in later link should work if you finished going through the Readme after the Deploy to Bluemix button step. You most likely still need to populate the database: https://github.com/IBM-Swift/BluePic#4-populate-cloudant-database

@ljbennett62
Copy link
Contributor Author

ok - let me continue

@tfrank64
Copy link
Member

I will close this issue tomorrow since deployment itself is working.

@ljbennett62
Copy link
Contributor Author

sounds good - tx for all your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants