Welcome Guest, Not a member yet? Register   Sign In
gitlab CI/CD pipeline cannot run php spark
#4

(This post was last modified: 08-18-2020, 08:04 PM by adty.)

My work around right now is by ignoring environment (start with an empty environment)

PHP Code:
env -i php spark migrate -n App 

I'm still digging to find a better way

(08-12-2020, 05:03 AM)InsiteFX Wrote: You can set the environment in the env file.

Code:
#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

# CI_ENVIRONMENT = production
CI_ENVIRONMENT = developement
# CI_ENVIRONMENT = testing

You can also set it in the root .htaccess file.

Code:
#SetEnv CI_ENVIRONMENT 'production'
SetEnv CI_ENVIRONMENT 'development'
#SetEnv CI_ENVIRONMENT 'testing'

Worse case add the environment to the spark file.

Changing environment in .env file doesnt work for me. I'll try the .htaccess approach
Reply


Messages In This Thread
RE: gitlab CI/CD pipeline cannot run php spark - by adty - 08-18-2020, 08:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB