azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
899 stars 63 forks source link

Using .env in Azkfile.js #691

Closed jonathanasquier closed 7 years ago

jonathanasquier commented 8 years ago

Hi, I have a .env on the root of my project folder with the Azkfile.js. How can I use this variables inside the Azkfile.js without duplicating them plz?

thanks!

gullitmiranda commented 8 years ago

Try ${env.ENV_NAME}.

Gullit Miranda

Em 1 de out de 2016 10:47, "Jonathan Asquier" notifications@github.com escreveu:

Hi, I have a .env on the root of my project folder with the Askfile.js. How can I use this variables inside the Askfile.js without duplicating them plz?

thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/azukiapp/azk/issues/691, or mute the thread https://github.com/notifications/unsubscribe-auth/AB8L9iDuZKL9XN4KN9yWFpBxbrikCUEhks5qvmSGgaJpZM4KLwgF .

jonathanasquier commented 8 years ago

Still getting

azk: List of deprecations:
azk: - `${}` is deprecated, use `#{env.ENV_NAME}` instead of `${env.ENV_NAME}` on `shooout-api.ports.http`

azk: ↑ starting `api` system, 1 new instances...
azk: ✓ checking `node:latest` image...
azk: ⎘ syncing files for `api` system...
azk: An error occurred. It will stop all instances already running. See details below.

azk: System `api` not running
azk: TypeError: Cannot read property 'protocol' of null

Same error with #{env.ENV_NAME} but without the deprecation

m59peacemaker commented 6 years ago

@jonathanasquier Did you figure this out? I'm having this problem also.

jonathanasquier commented 6 years ago

Nope, I ended up using docker-compose + volumes + pm2 for a fully dockerized dev workflow. Works like à charm.

Le mar. 20 févr. 2018 à 02:09, Johnny Hauser notifications@github.com a écrit :

@jonathanasquier https://github.com/jonathanasquier Did you figure this out? I'm having this problem also.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/azukiapp/azk/issues/691#issuecomment-366839183, or mute the thread https://github.com/notifications/unsubscribe-auth/AAvsh8uWc6fijxle2FBhgp0w5RA0ahjbks5tWhtJgaJpZM4KLwgF .