idsite-src icon indicating copy to clipboard operation
idsite-src copied to clipboard

Ez dev

Open dogeared opened this issue 9 years ago • 3 comments

dogeared avatar Jul 12 '16 19:07 dogeared

yo @dogeared , I did some worthsmithing to the readme and added a commit, lmk if you have any issues?

Also: ez_dev will prompt me for an application href, but it won't prompt me for ID or Secret if I don't have those available anywhere. The script will continue on and pop open the page in the browser, but nothing is actually available because it seems that the fakesp server is silently failing to start?

robertjd avatar Jul 13 '16 17:07 robertjd

wordsmitthery is good.

It should prompt you for id and secret if it doesn't find an environment variable called STORMPATH_API_KEY_FILE and it doesn't find ~/.stormpath/apiKey.properties. I tested this locally and it works as expected. Are you seeing something different?

dogeared avatar Jul 13 '16 23:07 dogeared

Here are the 3 scenarios I am referring to:

  1. no ~/.stormpath/apiKey.properties, nor STORMPATH_API_KEY_FILE env variable

    ** result: ask for API KEY ID and API KEY SECRET **

    ➥ ./ez_dev.sh
    Setting up...
    
    Enter your Stormpath API Key ID and press [ENTER]:
    
  2. STORMPATH_API_KEY_FILE specified.

    ** result: no need to ask for API KEY ID and API KEY SECRET **

    ➥ STORMPATH_API_KEY_FILE=~/.stormpath/apiKey.fruitful-ring.properties ./ez_dev.sh
    Setting up...
    
    Enter your Stormpath Application HREF and press [ENTER] (default: default Stormpath Application):
    
  3. ~/.stormpath/apiKey.properties file exists

    ** result: no need to ask for API KEY ID and API KEY SECRET **

    ➥ ln -s ~/.stormpath/apiKey.fruitful-ring.properties ~/.stormpath/apiKey.properties
    ➥ ./ez_dev.sh
    Setting up...
    
    Enter your Stormpath Application HREF and press [ENTER] (default: default Stormpath Application):
    

dogeared avatar Jul 13 '16 23:07 dogeared