spotify-token-swap-service icon indicating copy to clipboard operation
spotify-token-swap-service copied to clipboard

Build with Heroku button doesn't work

Open ekizean opened this issue 4 years ago • 7 comments

It doesn't build

ekizean avatar May 17 '20 18:05 ekizean

I have same problem

david03g avatar Jun 04 '20 01:06 david03g

The ruby gemfile requires a gem called that does not exist on github any longer: gem "encrypted_strings", github: "better-forks/encrypted_strings"

There is a workaround using a cloned version of that repo called: gem "encrypted_strings", github: "pluginaweek/encrypted_strings"

Create an account on Heroku and create an app. Then you open a terminal and run: heroku login This will open a browser and login to Heroku. After this clone heroku git repo:

heroku git:clone -a mindwalker
git add .

Then copy the spotify token swap service repository:

git clone https://github.com/bih/spotify-token-swap-service.git
cd spotify-token-swap-service/

Change this in Gemfile: gem "encrypted_strings", github: "pluginaweek/encrypted_strings" And change this in Gemfile.lock:

GIT
  remote: git://github.com/pluginaweek/encrypted_strings.git
  revision: a9bea6b48b910e24e762662d8816709100906756
  specs:
    encrypted_strings (0.3.3)

And commit which will build automatically:

$ git commit -am "initial commit"
$ git push heroku master

ruudkalis avatar Jul 14 '20 06:07 ruudkalis

Same issue as of July 15. Will try the steps above.

After finishing the steps above this is my new result: I am doing the following steps but am not able to finish as of the git push heroku master results in this error:

remote: ! No default language could be detected for this app. remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically. remote: See https://devcenter.heroku.com/articles/buildpacks

I tried adding in the buildpack but I really don't understand how it would map out for an iOS App using objective-c. Any takes on this?

StephanieSantana avatar Jul 16 '20 01:07 StephanieSantana

Upon trying to understand more, I did the following:

  1. I removed all objective-c code out as I may have misunderstood this.
  2. I finished the gem part where I change the string, and then I directly did this bundle install --path vendor/bundle to update the gemlock file as this is untouchable by my machine.
  3. I went back into the repository I want to finish the git push heroku master with and I find that even if I add in the nodeJS buildpack, do npm init to add in the package.json file that it prompts me for, I still get the following: Screen Shot 2020-07-16 at 6 12 08 PM

I may be misreading a step, or this solution no longer is working.

StephanieSantana avatar Jul 17 '20 01:07 StephanieSantana

To circle back to this and help anyone else who was blocked like me, my colleague @timothy1ee was able to resolve this by forking this repo and applying the gem changes on the forked repo. I didn't realize that was what was asked from everyone else. Hope this unblocks anyone else who wants to use this! https://github.com/timothy1ee/spotify-token-swap-service is an example of a successful working deploy with heroku button.

StephanieSantana avatar Jul 17 '20 03:07 StephanieSantana