Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gullit Miranda
    @gullitmiranda
    O que achou desse serviço?
    Everton Ribeiro
    @nuxlli
    @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
    Legal.
    Saito
    @saitodisse
    Gitter test
    Daniel Durante
    @durango
    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
    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
    hmm
    OK well I keep getting errors like "//bin/bash godo not found"
    Everton Ribeiro
    @nuxlli
    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
    ah! this makes sense!
    Now when I type in azk start -R <my app> it seems to not.. refresh the provisisions :/
    Everton Ribeiro
    @nuxlli
    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
    Actually neveermind, I may have messed up my stuff with the persistant storage
    I see
    Everton Ribeiro
    @nuxlli
    the correct syntax is azk start <mysistem> -R
    order is important
    Daniel Durante
    @durango
    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
    rm -Rf .azk && azk start
    @durango, you are using Mac OS X?
    Daniel Durante
    @durango
    @nuxlli yessir
    panic: dial tcp 127.0.0.1:5432: connection refused seems like postgres is not being linked :/
    Everton Ribeiro
    @nuxlli

    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?

    Daniel Durante
    @durango
    It should still be there
    Gullit Miranda
    @gullitmiranda
    Currently how is the connection to the database?
    Gullit Miranda
    @gullitmiranda
    So that the application can communicate you need to make a connection URI parse that was exported. This link has an example of how to parse https://gobyexample.com/url-parsing
    on line 78 of your Azkfile.js is where it is defined the connection URI called DATABASE_URL
    Daniel Durante
    @durango
    Yeah thts what im using actually :/ well... its more along the lines of loading a YAML file with the $DATABASE_URL
    setting up agent now
    λ Daniels-MacBook-Pro gambit → λ git master → azk start
    azk: Manifest not valid (see http://doc.azk.io), error:
    azk: ReferenceError: env is not defined
    azk: at eval (eval at template (/usr/local/Cellar/azk/0.7.1/node_modules/lodash/dist/lodash.js:6305:22), <anonymous>:13:10)
    λ Daniels-MacBook-Pro gambit → λ git master
    even weirder error now
    its ok guys, i dont mean to cause this much trouble :/
    Gullit Miranda
    @gullitmiranda
    You are not causing any problems, you actually report their difficulties and problems is extremely important pair that we can improve AZK as a whole.
    @durango Have you made any change in Azkfile.js leaving it different from available gist?
    This error usually occurs when using env instead ofenvs to load the environment variables.
    Daniel Durante
    @durango
    i dont think so ill double check though in about 50 minutes, have a meeting to go into
    Gullit Miranda
    @gullitmiranda
    No problem, if the test is still occurring problems can warn here.
    Daniel Durante
    @durango
    do provisions work on the workdir or before the workdir? I'm presuming before"
    Gullit Miranda
    @gullitmiranda
    the provision uses the workdir as path for command execution
    Gullit Miranda
    @gullitmiranda
    the provision uses the workdir as path for command execution
    Daniel Durante
    @durango
    Oh
    OK, and for exposing port 3000 it's just as simple as ports: {http: "3000/tcp"}, ?
    Ah, nvm ill ask once i stop getting errors, was getting timeouts for godeps (probably an error on my end with our network)
    Gullit Miranda
    @gullitmiranda
    this error occurs in the provision or application start?