The environment "main" is not currently active
Travis Raup
I created a new project and tried to use the Platform CLI to SSH into my project’s environment via platform ssh and received the following warning message.
Could not find applications: the environment "main" is not currently active.
0
Comments
You will receive that error on a created project that has not yet been initialized with a code base.
The
mainenvironment is automatically activated when you push your code to it, so run the following commands from your local project repository:Set Platform.sh as remote
You can retrieve your
<project ID>with the commandplatform project:list.Push to Platform.sh
If you have not already initialized a Git repository for your project, first run
git init. Then,When the build process has completed you can SSH into
masterwith:If in the future you add and push a development branch to Platform.sh, unlike
masterthat branchdevwill not automatically be activated. In order to SSH intodev, you can activate it from within your local project directory usingPlease sign in to leave a comment.