Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy from Windows problems #115

Closed
cyberbit opened this issue Jul 26, 2015 · 7 comments
Closed

Deploy from Windows problems #115

cyberbit opened this issue Jul 26, 2015 · 7 comments
Labels
Milestone

Comments

@cyberbit
Copy link
Contributor

Here's the dump from php couscous.phar deploy -v on Win8.1:

Generating C:\Users\D.J\OneDrive\GitHub\modation to C:\Users\D.J\OneDrive\GitHub\modation/.couscous/generated

Deploying the website
Cloning https://github.com/cyberbit/modation.git in C:\Users\D.J\AppData\Local\Temp\cou8459.tmp
Checking out branch gh-pages
Copying generated website
Committing changes
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.



  [Couscous\CommandRunner\CommandException]                             
  error: pathspec 'generation' did not match any file(s) known to git.  
  error: pathspec 'with' did not match any file(s) known to git.        
  error: pathspec 'Couscous'' did not match any file(s) known to git.   



Exception trace:
 () at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/src/CommandRunner/CommandRunner.php:28
 Couscous\CommandRunner\CommandRunner->run() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/src/CommandRunner/Git.php:60
 Couscous\CommandRunner\Git->run() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/src/CommandRunner/Git.php:39
 Couscous\CommandRunner\Git->commitAllChanges() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/src/Deployer.php:111
 Couscous\Deployer->commitChanges() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/src/Deployer.php:54
 Couscous\Deployer->deploy() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/src/Application/Cli/DeployCommand.php:106
 Couscous\Application\Cli\DeployCommand->execute() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/vendor/symfony/console/Command/Command.php:259
 Symfony\Component\Console\Command\Command->run() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/vendor/symfony/console/Application.php:878
 Symfony\Component\Console\Application->doRunCommand() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/vendor/symfony/console/Application.php:195
 Symfony\Component\Console\Application->doRun() at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/vendor/symfony/console/Application.php:126
 Symfony\Component\Console\Application->run() at C:\Users\D.J\OneDrive\Development\Web\Couscous\couscous.phar:48


deploy [--repository REPOSITORY] [--branch BRANCH] [--] [<source>]


Need to catch some Zs, hopefully I'll look at this tomorrow. I'll update when I find something.

@mnapoli
Copy link
Member

mnapoli commented Jul 26, 2015

Thanks for the report. What I see so far:

  error: pathspec 'generation' did not match any file(s) known to git.  
  error: pathspec 'with' did not match any file(s) known to git.        
  error: pathspec 'Couscous'' did not match any file(s) known to git.  

It seems the commit message "Website generation with Couscous" (from here) is being interpreted by git as a path. The command run (see here) is:

git add --all . && git commit -m 'Website generation with Couscous'

Could you try running this command manually (somewhere) and see what it does?

@mnapoli mnapoli added the bug label Jul 26, 2015
@mnapoli
Copy link
Member

mnapoli commented Jul 26, 2015

Ah could it be simply the quotes? Like in #111

@cyberbit
Copy link
Contributor Author

Definitely the quotes. I'll submit a pull request later today or tomorrow with the changes.

@mnapoli
Copy link
Member

mnapoli commented Jul 26, 2015

Fixed by #116

@mnapoli mnapoli closed this as completed Jul 26, 2015
@mnapoli mnapoli added this to the 1.2 milestone Jul 26, 2015
@mnapoli
Copy link
Member

mnapoli commented Jul 26, 2015

FYI I released v1.2.0, thank you!

@cyberbit
Copy link
Contributor Author

Awesome! Glad I could help. 👍

@cyberbit
Copy link
Contributor Author

I'm pleased to report it's working now! The deploy runs smoothly. The only problem I'm seeing is that the script has trouble getting rid of the temporary directory once it's done:

  [Symfony\Component\Filesystem\Exception\IOException]
  Failed to remove file "C:\Users\D.J\AppData\Local\Temp\couE5D4.tmp\.git\obj
  ects\pack\pack-72011cf9e1c255e46553fb1f4aa422f27ee2b3fa.pack".



Exception trace:
 () at phar://C:/Users/D.J/OneDrive/Development/Web/Couscous/couscous.phar/vendo
r/symfony/filesystem/Filesystem.php:175
 Symfony\Component\Filesystem\Filesystem->remove() at phar://C:/Users/D.J/OneDri
ve/Development/Web/Couscous/couscous.phar/vendor/symfony/filesystem/Filesystem.p
hp:162
 Symfony\Component\Filesystem\Filesystem->remove() at phar://C:/Users/D.J/OneDri
ve/Development/Web/Couscous/couscous.phar/vendor/symfony/filesystem/Filesystem.p
hp:162
 Symfony\Component\Filesystem\Filesystem->remove() at phar://C:/Users/D.J/OneDri
ve/Development/Web/Couscous/couscous.phar/vendor/symfony/filesystem/Filesystem.p
hp:162
 Symfony\Component\Filesystem\Filesystem->remove() at phar://C:/Users/D.J/OneDri
ve/Development/Web/Couscous/couscous.phar/vendor/symfony/filesystem/Filesystem.p
hp:162
 Symfony\Component\Filesystem\Filesystem->remove() at phar://C:/Users/D.J/OneDri
ve/Development/Web/Couscous/couscous.phar/src/Deployer.php:123
 Couscous\Deployer->deleteTempDirectory() at phar://C:/Users/D.J/OneDrive/Develo
pment/Web/Couscous/couscous.phar/src/Deployer.php:58
 Couscous\Deployer->deploy() at phar://C:/Users/D.J/OneDrive/Development/Web/Cou
scous/couscous.phar/src/Application/Cli/DeployCommand.php:106
 Couscous\Application\Cli\DeployCommand->execute() at phar://C:/Users/D.J/OneDri
ve/Development/Web/Couscous/couscous.phar/vendor/symfony/console/Command/Command
.php:259
 Symfony\Component\Console\Command\Command->run() at phar://C:/Users/D.J/OneDriv
e/Development/Web/Couscous/couscous.phar/vendor/symfony/console/Application.php:
878
 Symfony\Component\Console\Application->doRunCommand() at phar://C:/Users/D.J/On
eDrive/Development/Web/Couscous/couscous.phar/vendor/symfony/console/Application
.php:195
 Symfony\Component\Console\Application->doRun() at phar://C:/Users/D.J/OneDrive/
Development/Web/Couscous/couscous.phar/vendor/symfony/console/Application.php:12
6
 Symfony\Component\Console\Application->run() at C:\Users\D.J\OneDrive\Developme
nt\Web\Couscous\couscous.phar:48

I'm able to remove it manually, and the push still works. It might be related to the running permissions of PHP, so it's probably my problem.

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

No branches or pull requests

2 participants