Push configuration file
- Run
loonar env pushin the project directory - Enter project name, default it is your folder name
- Choose configuration file based on your wordpress structure
- Bedrock - .env
- Default - wp-config.php
- If a file exists on the server you cannot overwrite it by this command. Use
loonar env update
The configuration file will be sent to the server. The name of the file will be changed to this format:
- Project name: your-project
- Configuration file: .env
- Result: your-project-env
- Project name: my-project
- Configuration file: wp-config.php
- Result: my-project-wp-config.php
You can send some configuration files from one project, just change the project name to another. For example, you can change the project name to your-project-production to send the production configuration file and your-project to send the development configuration file.
Remember, you can only send files named .env or wp-config.php so you have to temporarily change the production and development filename.