Comments (10)
@Szaamaan can you please post here your config.yaml content (repository_url and magento sections)?
from magento2-vagrant-for-developers.
@paliarush Like I wrote, I'm using the stock config basically:
repository_url:
# [To apply changes: init-project -fc]
# [email protected]:magento/magento2ce.git OR custom one
ce: "[email protected]:magento/magento2.git"
# [email protected]:magento/magento2ee.git OR custom one
ee: ""
# can be replaced with custom repository
ce_sample_data: "[email protected]:magento/magento2-sample-data.git"
# [email protected]:magento/magento2-sample-data-ee.git OR custom one
ee_sample_data: ""
The only changes I've made to the config are:
- in
guest
I've increased memory - in
magento
I've setinstall_sample_data
to 1 and changed the host name
from magento2-vagrant-for-developers.
Config looks good.
Have you tried to run bash ./init_project.sh -fc
? Note that this command will remove your current code base and box itself, then will recreate everything from scratch.
There are 2 ways to install sample data: via composer or via linking git repositories. Here we use second approach. So don't try m-bin-magento sampledata:deploy
. BTW, there was a typo in your command bash m-bin-magento sample:deploy
, should be sampledata:deploy
.
from magento2-vagrant-for-developers.
@paliarush Yes. I've tried that. Again, it seems the sample data is somehow incompatible with the dev version of Magento...
from magento2-vagrant-for-developers.
Just set up new instance of vagrant project from scratch using the following settings and sample data was successfully installed:
repository_url:
ce: "[email protected]:magento/magento2.git"
ee: ""
ce_sample_data: "[email protected]:magento/magento2-sample-data.git"
ee_sample_data: ""
magento:
# [To apply changes: m-switch-to-ce -f OR m-switch-to-ee -f]
install_sample_data: 1
BTW specified sample data repository is kept in sync with develop branch of Magento, so this should not be a problem.
My host is OSX, which one do you have? Unfortunately I don't have access to Windows host at the moment to test it.
Will leave it open, maybe someone also has the same problem. Thanks for reporting this.
from magento2-vagrant-for-developers.
In that case it might be something with the script running on a Windows host. Again, sample data is never installed, despite the correct settings in config.yaml
.
EDIT:
Excuse my ignorance, but perhaps I'm missing some step?
From my understanding - running the config you posted should result in a working Magento installation already populated with sample data (visible right on the main page)? If not, then is there another thing required?
If no other commands or changes are needed then I have a feeling it might be the symlinks on Windows not working the same way they might be under other OSes.
from magento2-vagrant-for-developers.
@Szaamaan just looked at init_project.sh
and found old comment related to linking EE (the same is valid for sample data linking):
Automatic switch to EE during project initialization cannot be supported on Windows
So on Windows you will not get EE and Sample data installed just by running init_project.sh
.
You need to perform one more step after CE with no sample data is successfully installed. Run m-switch-to-ce -f
, then you should see prompt:
Wait while Magento2 code is uploaded in PhpStorm and press any key to continue...
Basically you need to make sure that after symlinks were created on your host, all Sample data files are uploaded to the guest. Current recommended way to do this is using PhpStorm deployment feature (should be configured for you by init_project.sh
), however you can use any other sync method (e.g. rsync).
After you hit any button to continue installation, Magento with sample data should be installed.
from magento2-vagrant-for-developers.
Hi,
I'm having the same issue on OSX 10.11.6.
One thing I noticed is when doing a ls of $MAGENTO_ROOT/dev/tools is that the symlink seems to be an invalid one. Could it be due to the case sensitivity of the file paths (users vs Users)?
from magento2-vagrant-for-developers.
@jasonheecs since OSX is case insensitive and Ubuntu is case sensitive, it can be a problem. Please read item 9 in https://github.com/paliarush/magento2-vagrant-for-developers#faq
I recommend to do init_project.sh -fc
in this case (will pull codebase again and re-create box based on your current config.yaml).
from magento2-vagrant-for-developers.
For some reason Windows Git Bash doesn't always show the message "Wait while ...". It just stops without any message on screen. I have all debugging options set. Anyhow log file m-switch-to-ce.log shows the message when execution stops.
Proposed solution works so just copy/deploy manually sample data from host to guest and continue installation.
from magento2-vagrant-for-developers.
Related Issues (20)
- Xdebug issue on latest versions
- SSH command responded with a non-zero exit status.
- There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 365199510952
- Got some issue with clone private repos from bitbucket
- when i run init_project.sh getting error
- [Feature] Allow to enable/disable xdebug with configuration
- Magento frontend is not accessible after installation on windows host
- Issue when booting VM in ubuntu 18.10 HOT 1
- Terminal in vagrant got freezes while install/reinstall magento
- [Enhancements] Allow to disabled xdebug from config.yaml
- Increase xdebug_nesting_level for extended editions scenarios
- Cannot find NFS mount on MacOS Mojave 10.14.1
- Ubuntu Trusty is EOL; ondej/php has removed all PHP versions HOT 9
- PHP Module does not exist HOT 4
- Unable to install HOT 2
- git bash, windows 10, read-only file system error HOT 1
- y7777777777777777777777777777777777777777/8888888888888888/x
- Host PHP version php-5.6.9 -> newer and adding VC_redist.x64.exe as requirement HOT 1
- [Windows] Unzip not installed by default in gitbash
- Deleting Magento Test Module only if "checkout_source_from: git"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-vagrant-for-developers.