Skip to content

Deploy unlimited Node.js apps on your servers for less the money and less the time. Set up automated deployment in a click. Free SSL in a breeze and more!

Notifications You must be signed in to change notification settings

LogicalAddress/pushdeploy-api

Repository files navigation

Development

./ngrok http 192.168.0.100:8080
# In a different shell
sudo service mysql start
sudo service mongodb start
export IP=192.168.0.100
cp .env.example .env
grunt #npm install -g grunt-cli
export API_URL="https://7dfcfdd0.ngrok.io"
grunt

Docker

docker build -t logicaladdress/pushdeploy-api .
docker push logicaladdress/pushdeploy-api
docker run --env-file ./.env -it logicaladdress/pushdeploy-api

Running Test Suites

grunt test

Kube Apply General Setttings

export FLUENT_PAPERTRAIL_HOST=logsN.papertrailapp.com FLUENT_PAPERTRAIL_PORT=NNNN && \
    kubectl apply -f kube/fluentd-daemonset-papertrail.yaml

kubectl apply -f kube/settings/

DOCKET PRODUCTION

kubectl port-forward pods/pushdeploy-api-64458979d-shk4c 8080:8080

PRODUCTION DB

# Self managed
ssh -i /Users/retnan/.ssh/do-pushdeploy-db USER@IP

Load Balancer

open http://$(kubectl get service pushdeploy-api --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")

# or get the external IP
kubectl get services

CircleCI, Docker, Kube and DigitalOcean

https://www.digitalocean.com/community/tutorials/how-to-automate-deployments-to-digitalocean-kubernetes-with-circleci

Node Virtual Environment Manager

https://github.com/ekalinin/nodeenv`

// http://ns1.cargospace.co/wsdl-atomiadns.wsdl // http://atomia.github.io/atomiadns/apidocs.html

curl --header "X-Auth-Username: gorilla@cargospace.co" --header "X-Auth-Password: faker00tX" http://ns1.cargospace.co/atomiadns.json/GetAllZones
[{"name":"retnan.com","id":"1"}]
curl --header "X-Auth-Username: gorilla@cargospace.co" --header "X-Auth-Password: faker00tX" --data '["retnan.com"]' http://ns1.cargospace.co/atomiadns.json/GetZone
[{"name":"retnan.com.","records":[{"type":"CNAME","rdata":"www.cargospace.ng.","class":"IN","id":"4","ttl":"3600","label":"retnan.com."}]},{"name":"@","records":[{"rdata":"ns1.cargospace.co.","type":"NS","label":"@","ttl":"3600","id":"2","class":"IN"},{"label":"@","class":"IN","id":"1","ttl":"3600","type":"SOA","rdata":"ns1.cargospace.co hostmaster.ns1.cargospace.co %serial 10800 3600 604800 86400"}]}]

curl -X PUT -H "Content-Type: application/json" -d '{"NameServers":["ns1.gorillahead.com", "ns2.gorillahead.net", "ns3.gorillahead.org"]}' https://techpool-dretnan.c9users.io/v1/whois/nameserver/resellerdocs.com

curl -H "Content-Type: application/json" -X POST -d '{"name":"plateauunited.net","copyFrom": "retnan.com"}' http://techpool-dretnan.c9users.io/v1/dns/zone

curl -X "DELETE" http://techpool-dretnan.c9users.io/v1/dns/zone/gorilla.net

curl -X PUT -H "Content-Type: application/json" -d '{"name":"plateauunited.net", "rdata": "ns1.cargospace.co admin.ns1.cargospace.co %serial 10800 3600 604800 86400", "id": "18", "type":"SOA","class":"IN","ttl":"3600","label":"@"}' techpool-dretnan.c9users.io/v1/dns/zone/plateauunited.net/18

curl -X POST -H "Content-Type: application/json" -d '{"name":"plateauunited.net", "rdata": "192.168.50.1", "type":"A","class":"IN","ttl":"3600","label":"plateauunited.net"}' techpool-dretnan.c9users.io/v1/dns/zone/plateauunited.net

About

Deploy unlimited Node.js apps on your servers for less the money and less the time. Set up automated deployment in a click. Free SSL in a breeze and more!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •