code4sac / wicit

A simple node/express app for finding locations that accept WIC in California, using data from the new California Department of Public Health open data portal.
http://findwic.com/
MIT License
19 stars 20 forks source link

Fix connection to CHHS API #56

Closed DonaldBrower closed 3 years ago

DonaldBrower commented 3 years ago

Due to a change in the API, the Longitude and Latitude fields need to be cast to the numeric type.

feydan commented 3 years ago

Looks good. Do u have the ability to merge + deploy?

I just gave u maintainer access.

DonaldBrower commented 3 years ago

Thanks!. I've been trying to deploy, but having problems. Haven't deployed code changes on this project before.

The docs say treat to dokku droplet as the remote, so I tried to push from local. The git hook that runs is failing.

> git remote add dokku dokku@107.170.195.11:wicit

> git push dokku master:master

Enumerating objects: 23, done.
Counting objects: 100% (23/23), done.
Delta compression using up to 4 threads
Compressing objects: 100% (12/12), done.
Writing objects: 100% (15/15), 46.21 KiB | 46.21 MiB/s, done.
Total 15 (delta 9), reused 6 (delta 3)
-----> Cleaning up...
-----> Building wicit from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true

-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)

       Resolving node version 6.x...
       Error: Invalid semantic version "6.x"

-----> Build failed

       !     Invalid semver requirement

       Node, Yarn, and npm adhere to semver, the semantic versioning convention
       popularized by GitHub.

       http://semver.org/

       However you have specified a version requirement that is not a valid
       semantic version.

       https://kb.heroku.com/why-is-my-node-js-build-failing-because-of-an-invalid-semver-requirement

To 107.170.195.11:wicit
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@107.170.195.11:wicit'

Tried to address:

       Resolving node version 6.x...
       Error: Invalid semantic version "6.x"

-----> Build failed

       !     Invalid semver requirement

by explicitly setting the engine field in package.json, but it's still failing with the same error. i think the issue might be that it's not able to connect to semver at all.

any of this look familar?