Cannot push file & folder to shared hosting
up vote
-2
down vote
favorite
I develop my app with Yii 2. I use widget select2 at my form. But when i try to push my app to shared hosting, some files and folder in vendorkartik-vyii2-widget-select2 not push. What must i do?
git yii2 kartik-v
add a comment |
up vote
-2
down vote
favorite
I develop my app with Yii 2. I use widget select2 at my form. But when i try to push my app to shared hosting, some files and folder in vendorkartik-vyii2-widget-select2 not push. What must i do?
git yii2 kartik-v
Have u added your file before?
– CodeWizard
Nov 10 at 13:30
You never pushVendor
folder to your repo or live, although it is already added to.gitignore
you run thecomposer update
after pushing all the code, dont know if you are using any repository or not.
– Muhammad Omer Aslam
Nov 10 at 13:55
i got error when i try composer update: Fatal error: Out of memory (allocated 494927872) (tried to allocate 67108864 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220
– buqento richard
Nov 10 at 23:56
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I develop my app with Yii 2. I use widget select2 at my form. But when i try to push my app to shared hosting, some files and folder in vendorkartik-vyii2-widget-select2 not push. What must i do?
git yii2 kartik-v
I develop my app with Yii 2. I use widget select2 at my form. But when i try to push my app to shared hosting, some files and folder in vendorkartik-vyii2-widget-select2 not push. What must i do?
git yii2 kartik-v
git yii2 kartik-v
asked Nov 10 at 12:59
buqento richard
15
15
Have u added your file before?
– CodeWizard
Nov 10 at 13:30
You never pushVendor
folder to your repo or live, although it is already added to.gitignore
you run thecomposer update
after pushing all the code, dont know if you are using any repository or not.
– Muhammad Omer Aslam
Nov 10 at 13:55
i got error when i try composer update: Fatal error: Out of memory (allocated 494927872) (tried to allocate 67108864 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220
– buqento richard
Nov 10 at 23:56
add a comment |
Have u added your file before?
– CodeWizard
Nov 10 at 13:30
You never pushVendor
folder to your repo or live, although it is already added to.gitignore
you run thecomposer update
after pushing all the code, dont know if you are using any repository or not.
– Muhammad Omer Aslam
Nov 10 at 13:55
i got error when i try composer update: Fatal error: Out of memory (allocated 494927872) (tried to allocate 67108864 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220
– buqento richard
Nov 10 at 23:56
Have u added your file before?
– CodeWizard
Nov 10 at 13:30
Have u added your file before?
– CodeWizard
Nov 10 at 13:30
You never push
Vendor
folder to your repo or live, although it is already added to .gitignore
you run the composer update
after pushing all the code, dont know if you are using any repository or not.– Muhammad Omer Aslam
Nov 10 at 13:55
You never push
Vendor
folder to your repo or live, although it is already added to .gitignore
you run the composer update
after pushing all the code, dont know if you are using any repository or not.– Muhammad Omer Aslam
Nov 10 at 13:55
i got error when i try composer update: Fatal error: Out of memory (allocated 494927872) (tried to allocate 67108864 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220
– buqento richard
Nov 10 at 23:56
i got error when i try composer update: Fatal error: Out of memory (allocated 494927872) (tried to allocate 67108864 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220
– buqento richard
Nov 10 at 23:56
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
You can follow steps below:
- Make sure that those files/folders are not listed in the
.gitignore
file. - Add those files/folders to
index
withgit add <files/folders>
or if you want to add all content of the mentioned folder thengit add vendor/kartik-v/yii2-widget-select2
. - Type
git status
to see whether those files/folders have been actually added toindex
or not. - Make a commit:
git commit -m "message of commit"
- Finally push the commit to your hosting:
git push origin
-- suppose that the alias of the hosting isorigin
.
it not work. i try my best
– buqento richard
Nov 12 at 3:20
add a comment |
up vote
0
down vote
You never push vendor
folder to your repo or live, although it is already added to .gitignore
you run the composer update
after pushing all the code, dont know if you are using any repository or not.
For running composer, if you are on a shared hosting you might get the memory_limit
error so use the following way to run the composer.
Run the command
which composer
to find the path of the composer installed. this will give you the path where the composer is installed like/home/user/bin/composer
, copy the path.Then use
-d
switch withphp
to specify the memory limit while running the command, for examplephp -d memory_limit=512M /path/to/composer update
Note : there is a possibility that you get errors for allow_url_fopen
, in case you receive this error while updating the composer use -d
to add another command like php -d allow_url_fopen=On -d memory_limit=512M /path/to/composer update
thanks bro, i will upload them manual
– buqento richard
Nov 12 at 3:19
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can follow steps below:
- Make sure that those files/folders are not listed in the
.gitignore
file. - Add those files/folders to
index
withgit add <files/folders>
or if you want to add all content of the mentioned folder thengit add vendor/kartik-v/yii2-widget-select2
. - Type
git status
to see whether those files/folders have been actually added toindex
or not. - Make a commit:
git commit -m "message of commit"
- Finally push the commit to your hosting:
git push origin
-- suppose that the alias of the hosting isorigin
.
it not work. i try my best
– buqento richard
Nov 12 at 3:20
add a comment |
up vote
0
down vote
You can follow steps below:
- Make sure that those files/folders are not listed in the
.gitignore
file. - Add those files/folders to
index
withgit add <files/folders>
or if you want to add all content of the mentioned folder thengit add vendor/kartik-v/yii2-widget-select2
. - Type
git status
to see whether those files/folders have been actually added toindex
or not. - Make a commit:
git commit -m "message of commit"
- Finally push the commit to your hosting:
git push origin
-- suppose that the alias of the hosting isorigin
.
it not work. i try my best
– buqento richard
Nov 12 at 3:20
add a comment |
up vote
0
down vote
up vote
0
down vote
You can follow steps below:
- Make sure that those files/folders are not listed in the
.gitignore
file. - Add those files/folders to
index
withgit add <files/folders>
or if you want to add all content of the mentioned folder thengit add vendor/kartik-v/yii2-widget-select2
. - Type
git status
to see whether those files/folders have been actually added toindex
or not. - Make a commit:
git commit -m "message of commit"
- Finally push the commit to your hosting:
git push origin
-- suppose that the alias of the hosting isorigin
.
You can follow steps below:
- Make sure that those files/folders are not listed in the
.gitignore
file. - Add those files/folders to
index
withgit add <files/folders>
or if you want to add all content of the mentioned folder thengit add vendor/kartik-v/yii2-widget-select2
. - Type
git status
to see whether those files/folders have been actually added toindex
or not. - Make a commit:
git commit -m "message of commit"
- Finally push the commit to your hosting:
git push origin
-- suppose that the alias of the hosting isorigin
.
answered Nov 10 at 15:52
Nghia Bui
1,443812
1,443812
it not work. i try my best
– buqento richard
Nov 12 at 3:20
add a comment |
it not work. i try my best
– buqento richard
Nov 12 at 3:20
it not work. i try my best
– buqento richard
Nov 12 at 3:20
it not work. i try my best
– buqento richard
Nov 12 at 3:20
add a comment |
up vote
0
down vote
You never push vendor
folder to your repo or live, although it is already added to .gitignore
you run the composer update
after pushing all the code, dont know if you are using any repository or not.
For running composer, if you are on a shared hosting you might get the memory_limit
error so use the following way to run the composer.
Run the command
which composer
to find the path of the composer installed. this will give you the path where the composer is installed like/home/user/bin/composer
, copy the path.Then use
-d
switch withphp
to specify the memory limit while running the command, for examplephp -d memory_limit=512M /path/to/composer update
Note : there is a possibility that you get errors for allow_url_fopen
, in case you receive this error while updating the composer use -d
to add another command like php -d allow_url_fopen=On -d memory_limit=512M /path/to/composer update
thanks bro, i will upload them manual
– buqento richard
Nov 12 at 3:19
add a comment |
up vote
0
down vote
You never push vendor
folder to your repo or live, although it is already added to .gitignore
you run the composer update
after pushing all the code, dont know if you are using any repository or not.
For running composer, if you are on a shared hosting you might get the memory_limit
error so use the following way to run the composer.
Run the command
which composer
to find the path of the composer installed. this will give you the path where the composer is installed like/home/user/bin/composer
, copy the path.Then use
-d
switch withphp
to specify the memory limit while running the command, for examplephp -d memory_limit=512M /path/to/composer update
Note : there is a possibility that you get errors for allow_url_fopen
, in case you receive this error while updating the composer use -d
to add another command like php -d allow_url_fopen=On -d memory_limit=512M /path/to/composer update
thanks bro, i will upload them manual
– buqento richard
Nov 12 at 3:19
add a comment |
up vote
0
down vote
up vote
0
down vote
You never push vendor
folder to your repo or live, although it is already added to .gitignore
you run the composer update
after pushing all the code, dont know if you are using any repository or not.
For running composer, if you are on a shared hosting you might get the memory_limit
error so use the following way to run the composer.
Run the command
which composer
to find the path of the composer installed. this will give you the path where the composer is installed like/home/user/bin/composer
, copy the path.Then use
-d
switch withphp
to specify the memory limit while running the command, for examplephp -d memory_limit=512M /path/to/composer update
Note : there is a possibility that you get errors for allow_url_fopen
, in case you receive this error while updating the composer use -d
to add another command like php -d allow_url_fopen=On -d memory_limit=512M /path/to/composer update
You never push vendor
folder to your repo or live, although it is already added to .gitignore
you run the composer update
after pushing all the code, dont know if you are using any repository or not.
For running composer, if you are on a shared hosting you might get the memory_limit
error so use the following way to run the composer.
Run the command
which composer
to find the path of the composer installed. this will give you the path where the composer is installed like/home/user/bin/composer
, copy the path.Then use
-d
switch withphp
to specify the memory limit while running the command, for examplephp -d memory_limit=512M /path/to/composer update
Note : there is a possibility that you get errors for allow_url_fopen
, in case you receive this error while updating the composer use -d
to add another command like php -d allow_url_fopen=On -d memory_limit=512M /path/to/composer update
answered Nov 11 at 17:39
Muhammad Omer Aslam
11.9k62344
11.9k62344
thanks bro, i will upload them manual
– buqento richard
Nov 12 at 3:19
add a comment |
thanks bro, i will upload them manual
– buqento richard
Nov 12 at 3:19
thanks bro, i will upload them manual
– buqento richard
Nov 12 at 3:19
thanks bro, i will upload them manual
– buqento richard
Nov 12 at 3:19
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239195%2fcannot-push-file-folder-to-shared-hosting%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Have u added your file before?
– CodeWizard
Nov 10 at 13:30
You never push
Vendor
folder to your repo or live, although it is already added to.gitignore
you run thecomposer update
after pushing all the code, dont know if you are using any repository or not.– Muhammad Omer Aslam
Nov 10 at 13:55
i got error when i try composer update: Fatal error: Out of memory (allocated 494927872) (tried to allocate 67108864 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220
– buqento richard
Nov 10 at 23:56