# |
Jul 18th 2018, 21:37 |
saeideng |
:yum: |
# |
Jul 18th 2018, 21:37 |
joe.zimmerman |
well I'm not the one that put anything there haha whatever's there is put there by the install |
# |
Jul 18th 2018, 21:37 |
saeideng |
composer create-project --prefer-dist cakephp/app newfolder123456646161 |
# |
Jul 18th 2018, 21:36 |
saeideng |
your destination should empty |
# |
Jul 18th 2018, 21:36 |
joe.zimmerman |
tell that to my cpu! :P |
# |
Jul 18th 2018, 21:35 |
saeideng |
you should not see `Failed to download composer/composer from dist: ...` error |
# |
Jul 18th 2018, 21:34 |
joe.zimmerman |
PHP 7.0.10 (cli) (built: Aug 18 2016 09:48:53) ( ZTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies |
# |
Jul 18th 2018, 21:34 |
joe.zimmerman |
because I'm on a windows machine and so case sens doesnt matter |
# |
Jul 18th 2018, 21:33 |
saeideng |
try `php --version` |
# |
Jul 18th 2018, 21:33 |
joe.zimmerman |
it suggests that the archive has more than one thing named the same way but with different cases as the cause |
# |
Jul 18th 2018, 21:33 |
joe.zimmerman |
it downloads a bunch of stuff and then breaks towards the end |
# |
Jul 18th 2018, 21:32 |
joe.zimmerman |
if you read my original post (as Rocky from irc) I did the command you suggested to begin with |
# |
Jul 18th 2018, 21:32 |
joe.zimmerman |
haha |
# |
Jul 18th 2018, 21:32 |
saeideng |
for lazy |
# |
Jul 18th 2018, 21:31 |
joe.zimmerman |
wait whats the dots for? |
# |
Jul 18th 2018, 21:31 |
joe.zimmerman |
ok ill try the short version |
# |
Jul 18th 2018, 21:31 |
joe.zimmerman |
unless im missing something that's exactly what i did that brought me to this room? |
# |
Jul 18th 2018, 21:31 |
saeideng |
so just do `composer create-project ...........` |
# |
Jul 18th 2018, 21:30 |
joe.zimmerman |
Composer version 1.6.5 2018-05-04 11:44:59 |
# |
Jul 18th 2018, 21:30 |
saeideng |
if it was OK do `composer create-project --prefer-dist cakephp/app my-project` |
# |
Jul 18th 2018, 21:30 |
saeideng |
try `composer --version` |
# |
Jul 18th 2018, 21:30 |
joe.zimmerman |
and wouldn't my previous attempt at installing (the original bug above) have failed for not having composer? |
# |
Jul 18th 2018, 21:29 |
joe.zimmerman |
is that a global install or do you have to do that everytime you want to make a new cake proj? |
# |
Jul 18th 2018, 21:28 |
joe.zimmerman |
i have composer downloaded and installed |
# |
Jul 18th 2018, 21:28 |
hippo |
https://getcomposer.org/ |
# |
Jul 18th 2018, 21:28 |
hippo |
download composer first :slightly_smiling_face: |
# |
Jul 18th 2018, 21:28 |
joe.zimmerman |
`Could not open input file: composer.phar` |
# |
Jul 18th 2018, 21:26 |
joe.zimmerman |
I will. Thanks! |
# |
Jul 18th 2018, 21:26 |
hippo |
@joe.zimmerman try `php composer.phar create-project --prefer-dist cakephp/app my-project |
# |
Jul 18th 2018, 21:20 |
joe.zimmerman |
that's my irc post! |
# |
Jul 18th 2018, 21:20 |
joe.zimmerman |
oh wow |
# |
Jul 18th 2018, 20:56 |
Rocky |
any ideas? |
# |
Jul 18th 2018, 20:56 |
Rocky |
[RuntimeException] Failed to clone https://github.com/composer/composer.git via https, ssh pro tocols, aborting. - https://github.com/composer/composer.git fatal: destination path 'C:\inetpub\wwwroot\bookmarks\vendor\composer\composer' already exists and is not an empty directory. - git@github.com:composer/composer.git fatal: destination path 'C:\inetpub\wwwroot\bookmarks\vendor\composer\composer' already exists an |
# |
Jul 18th 2018, 20:55 |
Rocky |
then it tries to download from source and gives this error: |
# |
Jul 18th 2018, 20:55 |
Rocky |
The install fails with this error: Failed to download composer/composer from dist: The archive may contain iden tical file names with different capitalization (which fails on case insensitive filesystems): ZipArchive::extractTo(): Full extraction path exceed MAXPATHLEN (2 60) |
# |
Jul 18th 2018, 20:54 |
Rocky |
Hi! I am taking a Lynda.com course on cakephp and it gives the following command to install cake: composer create-project --prefer-dist cakephp/app {project name} |
# |
Jul 18th 2018, 20:40 |
slackebot |
there are no traits of parent association in files table entity. How can I find which parent table started file entity save? |
# |
Jul 18th 2018, 20:40 |
madbbb |
I have FilesTable with foreign_id and model field. ProductsTable hasOne Files and Documents hasMany Files as well and other models can have association with FileTable in future. When I save product entity with new file entity inside, file entity gets foreign_id from product and saves, but without model property. I tried to fill model field in FilesTable::beforeSave(Event $event, EntityInterface $entity, ArrayObject $options) method, but |
# |
Jul 18th 2018, 18:36 |
slackebot |
rename migration filenames and update the corresponding version numbers in the `phinxlog` database table, and (2) fork phinx and update `Phinx\Migration\Manager` to sort migrations/seeds with the `ksort()` flag `SORT_STRING` so that e.g. `20180101000000` is sorted after `20170101000000000` Just curious if anyone has dealt with this and/or has thoughts on how best to handle it. |
# |
Jul 18th 2018, 18:36 |
slackebot |
the "execution" order when doing rollbacks. That's why we've gone for years with these inconsistent filenames. I now need to fix these so that I can re-apply all migrations, and they get applied in the correct order. I'm curious what the best approach is for this. I haven't been able to dig up much online, and was hoping some other team had dealt with this issue in the past. The two approaches I've used to work around this so far are: (1) manually |
# |
Jul 18th 2018, 18:36 |
mike |
I've got a question related to Phinx; I'm not sure if this is the appropriate venue but: I have a project which has had Phinx migrations created over the months/years, which have not consistently followed the filename structure. As a result, I've got migrations with different lengths of "versions" (the timestamp in the file name). In practice this doesn't cause much of an issue if migrations are typically applied one at a time, and if we use |