rocketeers / rocketeer

Send your projects up in the clouds
http://rocketeer.autopergamene.eu/
MIT License
2.66k stars 217 forks source link

Deploy does not see environment root directory #752

Open miholeus opened 7 years ago

miholeus commented 7 years ago

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 commented 7 years ago

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

miholeus commented 7 years ago

@Anahkiasen will you look PR?

miholeus commented 7 years ago

@Anahkiasen are you here?)