These are chat archives for azukiapp/azk

8th
Dec 2014
Everton Ribeiro
@nuxlli
Dec 08 2014 00:50 UTC
@gullitmiranda ainda não sei, achei interessante
Vim parar aqui através da integração com o projeto https://gitter.im/Unitech/PM2
Gullit Miranda
@gullitmiranda
Dec 08 2014 12:23 UTC
Legal.
Saito
@saitodisse
Dec 08 2014 13:23 UTC
Gitter test
Daniel Durante
@durango
Dec 08 2014 17:55 UTC
so provisions is suppose to be commands to execute before the command attribute right?
I have this file.. https://gist.github.com/durango/6f8800709af8d8a96812 basically trying to get godep to install everything but it seems to not install godep correctly :(
Everton Ribeiro
@nuxlli
Dec 08 2014 18:13 UTC
This message was deleted
@durango you are on track, the provisions are steps executed before start command, once provisions is executed it will no longer be executed again, unless you force it with ` --reprovision
Daniel Durante
@durango
Dec 08 2014 18:16 UTC
hmm
OK well I keep getting errors like "//bin/bash godo not found"
Everton Ribeiro
@nuxlli
Dec 08 2014 18:19 UTC
Note that the provisions steps do not run and get persisted in images. To do this, a local Dockerfile would be necessary, and we are working to support this directly in Azkfile: #32
Finally, in your case, I will suggest that you add the following lines to your Azkfile.js:
// ...
  mounts: {
   // Mounts folders to assigned paths
   "/gopath": persistent("gopath"),
   "/goroot": persistent("goroot"),
   "/gopath/src/github.com/durango/gambit": path("."),
  }
// ...
Daniel Durante
@durango
Dec 08 2014 18:20 UTC
ah! this makes sense!
Now when I type in azk start -R <my app> it seems to not.. refresh the provisisions :/
Everton Ribeiro
@nuxlli
Dec 08 2014 18:22 UTC
about the error: "//bin/bash godo not found", it's a bug in Docker <= 1.3.1: docker/docker#5135
but has already been mapped, and we have to fix the release tomorrow: azukiapp/azk#197
Daniel Durante
@durango
Dec 08 2014 18:23 UTC
Actually neveermind, I may have messed up my stuff with the persistant storage
I see
Everton Ribeiro
@nuxlli
Dec 08 2014 18:24 UTC
the correct syntax is azk start <mysistem> -R
order is important
Daniel Durante
@durango
Dec 08 2014 18:25 UTC
ok and if i want to wipe out my <mysistem> entirely and start from scratch what would be the best way to do that?
Everton Ribeiro
@nuxlli
Dec 08 2014 18:26 UTC
rm -Rf .azk && azk start
@durango, you are using Mac OS X?
Daniel Durante
@durango
Dec 08 2014 18:32 UTC
@nuxlli yessir
panic: dial tcp 127.0.0.1:5432: connection refused seems like postgres is not being linked :/
Everton Ribeiro
@nuxlli
Dec 08 2014 18:57 UTC

It seems the application is trying to connect to the database on the same machine, In azk this should be done through environment variables. Think about the machine that is running your app and the database as separated machines, and the connection would occur by a network between them, the variables will guide you in this path.

Your Azkfile.js no longer available in https://gist.github.com/durango/6f8800709af8d8a96812, can give a new look to guide you better about what variables?