These are chat archives for azukiapp/azk

17th
May 2015
Gullit Miranda
@gullitmiranda
May 17 2015 00:00
  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
I did this already. :(
Gullit Miranda
@gullitmiranda
May 17 2015 00:02
run azk restart?
Junio Vitorino
@juniovitorino
May 17 2015 00:02
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
just a moment
it helps?
Junio Vitorino
@juniovitorino
May 17 2015 00:09
Stunning. :D
Gullit Miranda
@gullitmiranda
May 17 2015 00:09
It worked?
Junio Vitorino
@juniovitorino
May 17 2015 00:15
Yes, yes
Worked like a charm. :D
Junio Vitorino
@juniovitorino
May 17 2015 00:27
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
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
now response of azk shell -c ‘env | grep DB’
please
Junio Vitorino
@juniovitorino
May 17 2015 00:41
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
I restart the agent and got this error, maybe could help you.
Gullit Miranda
@gullitmiranda
May 17 2015 01:03
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
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
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
: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
# Azjke.js 
systems({
  wpbase: {
    // ...
    http: {
      domains: [ "dev.wpbase.io" ]
    },
  }
  //...
});
Junio Vitorino
@juniovitorino
May 17 2015 01:48
Beautiful
I need AZK_NAMESPACE before each azk call
Gullit Miranda
@gullitmiranda
May 17 2015 01:48
simple? :stuck_out_tongue_winking_eye:
Junio Vitorino
@juniovitorino
May 17 2015 01:49
Yes, a lot. :D
Gullit Miranda
@gullitmiranda
May 17 2015 01:49
yep.
You can also run:
$ export AZK_NAMESPACE=wpbase.io
$ azk agent start
$ azk start
Junio Vitorino
@juniovitorino
May 17 2015 01:52
I did this. :P
Where this namespaces are saved?
Gullit Miranda
@gullitmiranda
May 17 2015 01:54
smart boy
Junio Vitorino
@juniovitorino
May 17 2015 01:55
I found, ~/.azk
Coool. :+1:
Gullit Miranda
@gullitmiranda
May 17 2015 02:00
not only that. It also changes the connection to the VM and dns hosts.