Pob exec yog dab tsi?

Cov txheej txheem:

Pob exec yog dab tsi?
Pob exec yog dab tsi?
Anonim

bundle exec yog a Bundler hais kom ua tiav ib tsab ntawv hauv cov ntsiab lus ntawm pob tam sim no (ib qho los ntawm koj phau ntawv teev npe Gemfile). rake db: migrate yog tsab ntawv uas db yog lub npe chaw thiab migrate yog lub npe ua haujlwm tau txhais.

Puas yog pob exec tsim nyog?

Khiav pob exec thiab Bundler. xav tau tib lub sijhawm tsis muaj teeb meem, yog li nws muaj kev nyab xeeb siv cov pob exec txawm tias tsis xav tau tsuav yog tias muaj Gemfile hauv cov npe ntawd, nws yuav tsis qhib lub pov haum ob zaug.

bundle exec rails ua dab tsi?

bundle exec ua ntau qhov kev hloov pauv rau lub plhaub ib puag ncig, tom qab ntawd ua tiav cov lus txib koj teev tag nrho. Nws kuj hloov Rubygems: txwv tsis pub thauj cov pob zeb ntxiv tsis nyob hauv pob. hloov lub pov haum txoj kev los ua ib tug tsis-op yog ib lub pov haum txuam cov kev cai nyob rau hauv lub nras, thiab tsa ib lub pov haum::LoadError yog hais tias nws tsis yog.

Yuav ua li cas kuv thiaj li nres bundle exec?

Feem ntau koj yuav ntaus Ctrl-Ckom nres webrick thaum nws pib yam tsis muaj kev xaiv -d.

Vim li cas kuv thiaj li yuav tsum ntaus pob exec?

Bundler's bundle exec xav tau cov ntaub ntawv teeb tsa Bundler uas cia Bundler ua tag nrho nws cov ntaub ntawv nrhiav hacks rau thaum koj tom qab xav tau ib yam dab tsi. Tab sis koj tuaj yeem pom qee qhov xwm txheej yog tias koj qhov kev hloov pauv ib puag ncig twb tau teeb tsa raws li qhov xav tau tsuas yog ua haujlwm yam tsis muaj Bundler kev pab.

Pom zoo: