Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Deploy does not see environment root directory #752

Open
miholeus opened this issue Jul 6, 2017 · 3 comments
Open

Deploy does not see environment root directory #752

miholeus opened this issue Jul 6, 2017 · 3 comments

Comments

@miholeus
Copy link
Contributor

miholeus commented Jul 6, 2017

I'm on develop branch.

After ignition rocketeer created .env file, but root directory is not used.

I run deploy. Here is what I get

rocketeer deploy -p
├─ Deploy (Deploys the website)
│  ├─ Deploy/Rolling (Uses a system of folders current/releases/shared to roll releases)
│  │  ├─ Primer (Run local checks to ensure deploy can proceed)
│  │  ├─ CreateRelease (Creates a new release on the server)
│  │  │  ├─ CreateRelease/Clone (Clones a fresh instance of the repository by VCS)
│  │  │  |  ├─ Cloning repository in "/test/releases/20170706160909"
│  │  │  |  ├─ $ /usr/bin/git clone "git@gitlab.example.com/test.git" "/test/releases/20170706160909" --branch="master" --depth="1"
│  │  │  |  ├─ Initializing submodules if any
│  │  │  |  ├─ $ cd /test/releases/20170706160909
│  │  │  |  ├─ $ /usr/bin/git submodule update --init --recursive
│  │  ├─ PrepareRelease (Prepares the release for use)
│  │  |  ├─ Synchronizing shared folders
│  │  |  ├─ Setting correct permissions on the files
│  │  │  ├─ Dependencies (Installs or update the dependencies on server)
│  │  │  │  ├─ Dependencies/Polyglot (Runs all of the above package managers if necessary)
│  │  │  │  │  ├─ Dependencies/Composer (Installs dependencies with Composer)
│  │  │  │  |  ├─ $ cd /test/releases/20170706160909
│  │  │  │  |  ├─ $ /usr/local/bin/composer install --no-interaction --no-dev --prefer-dist
│  │  │  ├─ SwapSymlink (Swaps the symlink on the server)
│  │  │  |  ├─ Successfully deployed release 20170706160909
├─ Cleanup (Clean up old releases from the server)
|  ├─ No releases to prune from the server

But I have environment variable

STAGING_ROOT_DIRECTORY="/var/www/"

My default connection is staging.

The path /test/releases/20170706160909 is not correct.

@miholeus
Copy link
Contributor Author

miholeus commented Jul 6, 2017

I've figured out, that root_directory is null after ignition. That is strange.

@miholeus
Copy link
Contributor Author

miholeus commented Jul 6, 2017

@Anahkiasen will you look PR?

@miholeus
Copy link
Contributor Author

@Anahkiasen are you here?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant