Cannot push file & folder to shared hosting









up vote
-2
down vote

favorite
1












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?










share|improve this question





















  • 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











  • 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















up vote
-2
down vote

favorite
1












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?










share|improve this question





















  • 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











  • 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













up vote
-2
down vote

favorite
1









up vote
-2
down vote

favorite
1






1





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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 12:59









buqento richard

15




15











  • 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











  • 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










  • 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
















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













2 Answers
2






active

oldest

votes

















up vote
0
down vote













You can follow steps below:



  1. Make sure that those files/folders are not listed in the .gitignore file.

  2. Add those files/folders to index with git add <files/folders> or if you want to add all content of the mentioned folder then git add vendor/kartik-v/yii2-widget-select2.

  3. Type git status to see whether those files/folders have been actually added to index or not.

  4. Make a commit: git commit -m "message of commit"

  5. Finally push the commit to your hosting: git push origin -- suppose that the alias of the hosting is origin.





share|improve this answer




















  • it not work. i try my best
    – buqento richard
    Nov 12 at 3:20

















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.



  1. 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.


  2. Then use -d switch with php to specify the memory limit while running the command, for example php -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






share|improve this answer




















  • thanks bro, i will upload them manual
    – buqento richard
    Nov 12 at 3:19










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















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

























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:



  1. Make sure that those files/folders are not listed in the .gitignore file.

  2. Add those files/folders to index with git add <files/folders> or if you want to add all content of the mentioned folder then git add vendor/kartik-v/yii2-widget-select2.

  3. Type git status to see whether those files/folders have been actually added to index or not.

  4. Make a commit: git commit -m "message of commit"

  5. Finally push the commit to your hosting: git push origin -- suppose that the alias of the hosting is origin.





share|improve this answer




















  • it not work. i try my best
    – buqento richard
    Nov 12 at 3:20














up vote
0
down vote













You can follow steps below:



  1. Make sure that those files/folders are not listed in the .gitignore file.

  2. Add those files/folders to index with git add <files/folders> or if you want to add all content of the mentioned folder then git add vendor/kartik-v/yii2-widget-select2.

  3. Type git status to see whether those files/folders have been actually added to index or not.

  4. Make a commit: git commit -m "message of commit"

  5. Finally push the commit to your hosting: git push origin -- suppose that the alias of the hosting is origin.





share|improve this answer




















  • it not work. i try my best
    – buqento richard
    Nov 12 at 3:20












up vote
0
down vote










up vote
0
down vote









You can follow steps below:



  1. Make sure that those files/folders are not listed in the .gitignore file.

  2. Add those files/folders to index with git add <files/folders> or if you want to add all content of the mentioned folder then git add vendor/kartik-v/yii2-widget-select2.

  3. Type git status to see whether those files/folders have been actually added to index or not.

  4. Make a commit: git commit -m "message of commit"

  5. Finally push the commit to your hosting: git push origin -- suppose that the alias of the hosting is origin.





share|improve this answer












You can follow steps below:



  1. Make sure that those files/folders are not listed in the .gitignore file.

  2. Add those files/folders to index with git add <files/folders> or if you want to add all content of the mentioned folder then git add vendor/kartik-v/yii2-widget-select2.

  3. Type git status to see whether those files/folders have been actually added to index or not.

  4. Make a commit: git commit -m "message of commit"

  5. Finally push the commit to your hosting: git push origin -- suppose that the alias of the hosting is origin.






share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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












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.



  1. 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.


  2. Then use -d switch with php to specify the memory limit while running the command, for example php -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






share|improve this answer




















  • thanks bro, i will upload them manual
    – buqento richard
    Nov 12 at 3:19














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.



  1. 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.


  2. Then use -d switch with php to specify the memory limit while running the command, for example php -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






share|improve this answer




















  • thanks bro, i will upload them manual
    – buqento richard
    Nov 12 at 3:19












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.



  1. 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.


  2. Then use -d switch with php to specify the memory limit while running the command, for example php -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






share|improve this answer












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.



  1. 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.


  2. Then use -d switch with php to specify the memory limit while running the command, for example php -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







share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo