These are chat archives for azukiapp/azk

17th
May 2015
Gullit Miranda
@gullitmiranda
May 17 2015 00:00 UTC
  mysql: {
    // ...
    export_envs: {
      DB_USER     : "#{envs.MYSQL_USER}",
      DB_PASSWORD : "#{envs.MYSQL_PASS}",
      DB_NAME     : "#{envs.MYSQL_DATABASE}",
      DB_HOST     : "#{net.host}:#{net.port.data}",
      DATABASE_URL: "mysql2://#{envs.MYSQL_USER}:#{envs.MYSQL_PASS}@#{net.host}:#{net.port.data}/${envs.MYSQL_DATABASE}",
    },
  },
Junio Vitorino
@juniovitorino
May 17 2015 00:01 UTC
I did this already. :(
Gullit Miranda
@gullitmiranda
May 17 2015 00:02 UTC
run azk restart?
Junio Vitorino
@juniovitorino
May 17 2015 00:02 UTC
yes, the variables are available to wpbase, but PHP haven't access to system envvars, only apache envvars (SetEnv DB_NAME...)
Gullit Miranda
@gullitmiranda
May 17 2015 00:03 UTC
just a moment
it helps?
Junio Vitorino
@juniovitorino
May 17 2015 00:09 UTC
Stunning. :D
Gullit Miranda
@gullitmiranda
May 17 2015 00:09 UTC
It worked?
Junio Vitorino
@juniovitorino
May 17 2015 00:15 UTC
Yes, yes
Worked like a charm. :D
Junio Vitorino
@juniovitorino
May 17 2015 00:27 UTC
This not works?
root@ddb074d6fdf7:/azk/wpbase# mysql -u vitorino -p123456 -h dev.azk.io:49201
ERROR 2005 (HY000): Unknown MySQL server host 'dev.azk.io:49201' (0)
root@ddb074d6fdf7:/azk/wpbase# mysql -u vitorino -p123456 -h dev.azk.io:49201 ERROR 2005 (HY000): Unknown MySQL server host 'dev.azk.io:49201' (0)
the app can't connect to server. :(
Gullit Miranda
@gullitmiranda
May 17 2015 00:31 UTC
send me command responses: azk status and azk shell -c ‘env | grep DB'
Using sequel pro from mac works. :/
Gullit Miranda
@gullitmiranda
May 17 2015 00:34 UTC
now response of azk shell -c ‘env | grep DB’
please
Junio Vitorino
@juniovitorino
May 17 2015 00:41 UTC
sorry, sorry
I miss password in export_envs
:/
This is hunger, I go eat something.
Thank you so much @gullitmiranda :+1:
Junio Vitorino
@juniovitorino
May 17 2015 00:51 UTC
I restart the agent and got this error, maybe could help you.
Gullit Miranda
@gullitmiranda
May 17 2015 01:03 UTC
Apparently the Agent failed to connect in the docker.You could open an issue and attach that image?
Junio Vitorino
@juniovitorino
May 17 2015 01:22 UTC
Of course...
You said that I could change the domain if I want, I know that isn't the advised but if I wants how I could setup something like this http://dev.wpbase.io/
Junio Vitorino
@juniovitorino
May 17 2015 01:28 UTC
This is what I get if I hardly change the domain in azkfile https://www.dropbox.com/s/o2iwzb9kdohflvx/Screenshot%202015-05-16%2022.28.01.png?dl=0
Gullit Miranda
@gullitmiranda
May 17 2015 01:32 UTC
:sparkles:
For you change the domain it is necessary to raise the Agent with a different namespace. Only after the change Azkfile.js
$ AZK_NAMESPACE=wpbase.io azk agent start
Gullit Miranda
@gullitmiranda
May 17 2015 01:38 UTC
# Azjke.js 
systems({
  wpbase: {
    // ...
    http: {
      domains: [ "dev.wpbase.io" ]
    },
  }
  //...
});
Junio Vitorino
@juniovitorino
May 17 2015 01:48 UTC
Beautiful
I need AZK_NAMESPACE before each azk call
Gullit Miranda
@gullitmiranda
May 17 2015 01:48 UTC
simple? :stuck_out_tongue_winking_eye:
Junio Vitorino
@juniovitorino
May 17 2015 01:49 UTC
Yes, a lot. :D
Gullit Miranda
@gullitmiranda
May 17 2015 01:49 UTC
yep.
You can also run:
$ export AZK_NAMESPACE=wpbase.io
$ azk agent start
$ azk start
Junio Vitorino
@juniovitorino
May 17 2015 01:52 UTC
I did this. :P
Where this namespaces are saved?
Gullit Miranda
@gullitmiranda
May 17 2015 01:54 UTC
smart boy
Junio Vitorino
@juniovitorino
May 17 2015 01:55 UTC
I found, ~/.azk
Coool. :+1:
Gullit Miranda
@gullitmiranda
May 17 2015 02:00 UTC
not only that. It also changes the connection to the VM and dns hosts.