hanami / hanami/hanami-cli

Postgres - Change createdb/dropdb CLI commands to SQL statements

Open
#276 6 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Ruby
Stars
33
Forks
55
Avg merge
8d 7h
Merged PRs (30d)
2

Description

Hi everyone.

when i run the command:
```bash
HANAMI_ENV=test bundle exec hanami db create
```
I get error:
```
bundler: failed to load command: hanami (/builds/fake/vendor/ruby/ruby/3.3.0/bin/hanami)
/usr/local/lib/ruby/3.3.0/open3.rb:534:in `spawn': No such file or directory - createdb (Errno::ENOENT)
from /usr/local/lib/ruby/3.3.0/open3.rb:534:in `popen_run'
from /usr/local/lib/ruby/3.3.0/open3.rb:235:in `popen3'
from /builds/fake/vendor/ruby/ruby/3.3.0/gems/hanami-cli-2.2.1/lib/hanami/cli/system_call.rb:94:in `block in call'
from /builds/fake/vendor/ruby/ruby/3.3.0/gems/bundler-2.5.23/lib/bundler.rb:413:in `block in with_unbundled_env'
```
It works normally in development but in gitlab ci it crashes. I can't find the problem

As I understand it is related to createdb util that can't be found

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.