Tests not working in Codeship

Hey guys,

I am trying to set up Codeship for CI/CD. Every time I try to run the test it errors out:-

Error: ENOENT: no such file or directory, open '/home/rof/src/github.com/ghosh/<NAME>/.env'

The test runnig is the default test which comes included with every adonis install.

I think Adonis is trying to pull in the .env file, but codepen only has environment variables. Not sure which environment variables to add to Codeship to make this work

Any help would be appriciated.

1 Like

You should try this page, in the bottom, it specifies a way to provide the Environment variables apart from .env file

This Section:

Disabling the .env file

You may want to directly use the environment variables on your server instead of relaying to a file.

This can be done by using the ENV_SILENT environment variable:

> ENV_SILENT=true adonis serve

Yes that worked. Thank you.