You will receive an archive in /ghost/core in the format ghost-x.xx.x.tgz. This archive can then be used to install Ghost with the CLI using the --archive flag:
s3 adapter in ghost/content/adapters is not archived in tgz. Is there anything guides?
I want to set environment in terminal like
“database__connection__user=root yarn dev”
When I do ‘yarn build’ and ‘yarn archive’, How can I insert arguments?
I am building my own Docker images with a modified core, where I also use an S3 adapter.
My steps are basically this (which you should be able to replicate outside of Docker as well).
Install the archive with the Ghost CLI with the --no-start flag, so Ghost doesn’t immediately start after the installation
Copy my config.production.json to the Ghost directory
Copy the S3 adapter to the proper directory
Set the configuration for the S3 adapter using environment variables
Start Ghost
Works without issues for me.
For your second question regarding the environment – not entirely sure what you’re trying to do here? Adding yarn dev to an environment variable that’s meant for the database connection makes little sense to me.
What exactly are you trying to achieve? Generally, you’d set the environment well…in the environment you’re trying to run an application, not when you build its assets.