Update shell scripts to point to https://aftok.com and prompt for input.

[?]
Jun 9, 2015, 9:48 PM
SPJCFHXWUHL5DPU72R6MLMVYCRL4YNOMGTDXRFL6GZPN5KOHAW7AC

Dependencies

  • [2] V2VDN77H Enable postgres configuration via environment variable for Heroku.
  • [3] XZLSHL4D The server is now (tenuously) running, and serving pages via SSL!
  • [4] PBD7LZYQ Postgres & auth are beginning to function.
  • [5] 2G3GNDDU Event logging is now functioning in postgres.
  • [6] GCVQD44V Create amends endpoint, switch to UUID primary keys
  • [*] ADMKQQGC Initial empty Snap project.
  • [*] EPOYLP7O A little .gitignore cleanup.

Change contents

  • edit in .gitignore at line 17
    [9.52]
    local
  • replacement in scripts/create_project.sh at line 3
    [4.1255][4.398:530]()
    curl -v -u "nuttycom:kjntest" -X POST -H "Content-Type: application/json" -d '{"projectName":"the"}' http://localhost:8000/projects
    [4.1255]
    [4.1379]
    read -p "Username: " USER
    read -s -p "Password: " PASS
    echo
    read -p "Project Name: " PROJECT
    curl -v -k -u "$USER:$PASS" -X POST -H "Content-Type: application/json" -d "{\"projectName\":\"$PROJECT\"}" 'https://aftok.com/projects'
  • replacement in scripts/create_user.sh at line 9
    [3.2009][3.2009:2188]()
    curl -k -v -H 'Content-Type: application/json' -d "{\"username\":\"$USER\", \"password\":\"$PASS\", \"email\":\"$EMAIL\", \"btcAddr\":\"$BTC_ADDR\"}" 'https://localhost/register'
    [3.2009]
    [4.1648]
    curl -k -v -H 'Content-Type: application/json' -d "{\"username\":\"$USER\", \"password\":\"$PASS\", \"email\":\"$EMAIL\", \"btcAddr\":\"$BTC_ADDR\"}" 'https://aftok.com/register'
  • replacement in scripts/log_end.sh at line 1
    [4.532][4.7405:7559]()
    curl -v -u "nuttycom:kjntest" -X POST -d '' http://localhost:8000/projects/6f4cba6f-02ec-4cc3-9241-00609d6a6f6a/logEnd/1KamUn1BaRMd2HwikyQWGTdUvfPScg9QA5
    [4.532]
    #!/bin/bash
    read -p "Username: " USER
    read -s -p "Password: " PASS
    echo
    read -p "Project ID: " PROJECT
    read -p "BTC Address: " BTC_ADDR
    curl -v -k -u "$USER:$PASSWORD" -X POST -d '' "https://aftok.com/projects/$PROJECT/logEnd/$BTC_ADDR"
  • replacement in scripts/log_start.sh at line 1
    [4.689][4.7561:7717]()
    curl -v -u "nuttycom:kjntest" -X POST -d '' http://localhost:8000/projects/6f4cba6f-02ec-4cc3-9241-00609d6a6f6a/logStart/1KamUn1BaRMd2HwikyQWGTdUvfPScg9QA5
    [4.689]
    #!/bin/bash
    read -p "Username: " USER
    read -s -p "Password: " PASS
    echo
    read -p "Project ID: " PROJECT
    read -p "BTC Address: " BTC_ADDR
    curl -v -k -u "$USER:$PASSWORD" -X POST -d '' "https://aftok.com/projects/$PROJECT/logStart/$BTC_ADDR"
  • edit in server/Aftok/QConfig.hs at line 22
    [2.5002][2.5002:5079]()
    -- , sslCert :: FilePath
    -- , sslKey :: FilePath
    -- , dbName :: String
  • edit in server/Aftok/QConfig.hs at line 38
    [2.5653][2.5653:5811]()
    -- <*> (fmap fpFromText $ C.require cfg "sslCert")
    -- <*> (fmap fpFromText $ C.require cfg "sslKey")
    -- <*> C.require cfg "db"
  • edit in server/Aftok/QConfig.hs at line 43
    [2.5966][2.5966:6085]()
    --SC.setSSLPort (port qc) .
    --SC.setSSLCert (fpToString $ sslCert qc) .
    --SC.setSSLKey (fpToString $ sslKey cfg)