Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No configuration files present? #66

Open
scheung38 opened this issue Apr 8, 2018 · 3 comments
Open

No configuration files present? #66

scheung38 opened this issue Apr 8, 2018 · 3 comments

Comments

@scheung38
Copy link

scheung38 commented Apr 8, 2018

$ gem --version
2.5.2

quickstart/templates/common.yml:

---
data_sources: [ "file" , "environment" ]
template_sources: [ "file" ]
environments:
  development:
    db.erb:
      target: db.ini

quickstart/templates/db.erb:

db_hostname: <%= env_db_hostname %>

in quickstart:

$ export DB_HOSTNAME=mydb.example.com
$ tiller --base-dir=./quickstart
tiller v1.2.0 (https://github.com/markround/tiller) [email protected]
Error: No configuration files present!

Any help is appreciated to get someone up and running :)

@markround
Copy link
Owner

Hi, the common.yml should be in the quickstart/ directory, not quickstart/templates/. Does this fix things ?

@scheung38
Copy link
Author

scheung38 commented Apr 11, 2018

Hi Mark

No, after moving the common.yml from quickstart/templates one level up to quickstart and then

cd to home in my /Users/seb/

$ export DB_HOSTNAME=mydb.example.com

$ echo $DB_HOSTNAME
mydb.example.com

$ tiller --base-dir=./quickstart or
$ tiller --base-dir=./quickstart/

tiller v1.2.0 (https://github.com/markround/tiller) <[email protected]>
Error: No configuration files present!

Mins-MacBook-Pro:~ mincheung$ tiller --base-dir=./quickstart/
tiller v1.2.0 (https://github.com/markround/tiller) <[email protected]>
Error: No configuration files present!

It would helpful if documentation says where files are and in which directory should commands be executed, basically telling users how to structure our code would be great.

@scheung38
Copy link
Author

scheung38 commented Apr 11, 2018

OK I guess the naming convention is common.yaml:

tiller -b . -e development
tiller v1.2.0 (https://github.com/markround/tiller) <[email protected]>
Template generation completed

and NOT common.yml

$ tiller -b . -e development
tiller v1.2.0 (https://github.com/markround/tiller) <[email protected]>
Error: No configuration files present!

as I have always used .yml and not .yaml in the past as I believe Win doesn't allow four letters file extensions but not issue anywhere else...

But unfortunately in most banking clients it is still predominately Win environment.... so how to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants