Questions tagged [deploy]
The deploy tag has no usage guidance.
105
questions
3
votes
4
answers
5k
views
Set default locale for bin/magento setup:static-content:deploy
When running deploy static content on my store i always need to add the locale at the end of the command or my store breaks.
bin/magento setup:static-content:deploy en_GB
I was wondering if I am ...
1
vote
3
answers
3k
views
Magento 2: Why my static content for languages are not generated after migration?
I made a backup of Magento 2 and copied the whole site to another host. I extracted files and created a database. Now I get no CSS loaded. They all are "missing".
First I thought that it was caching ...
3
votes
2
answers
5k
views
how to speed up static content deploy for development
Especially after changing .html knockout js template files I have to always deploy static content with bin/magento setup:static-content:deploy <languages>.
This makes development very slow.
I ...
18
votes
1
answer
3k
views
app/etc/config.php in VCS or not
I have a question related with file app/etc/config.php.
This file described here and defined:
Magento base dir/app/etc/config.php, which contains the list of installed modules, themes, and ...
1
vote
2
answers
50
views
Deploying issue in Magento -2
I have a js file. Everytime I change something I need to execute the following commands:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento setup:static-...
6
votes
5
answers
28k
views
Magento 2, issue with getting "version" number in file paths
Not my first time to install Magento 2, but something strange this time. I have checked file permission, cleaned cache, deployed again. Files are created in pub/static in expected directories but ...
0
votes
3
answers
2k
views
Magento 2, how to deploy the content for specific area only (frontend or adminhtml) as requested parameter but in two languages
To save time when each time I need to deploy the content for changes in one area, how can I provide for example "adminhtml" as argument to be deployed in two languages? Below did not work:
bin/...
3
votes
2
answers
2k
views
magento 2 static content deploy error: @minicart-icon-color is undefined
I have created a new theme, and deployed the static content, but it's giving me an error when the front-end static content deployment is running.
That is:
@minicart-icon-color is undefined in the ...
4
votes
1
answer
563
views
What is the right way for using git and composer for modules in Magento 2? [duplicate]
Each of my module has a repository. I have dependency for my modules in composer.json in project folder.
For deployment I need:
in production: git clone, composer install.
in develop: git clone, ...
3
votes
4
answers
611
views
Problem setup:upgrade with CSS
My Magento 2 not load CSS in frontend.
If I do php bin/magento setup:static-content:deploy, the problem is solved and load perfectly, but when I do setup:upgrade, CSS not load again.
I know that ...
1
vote
1
answer
722
views
automatic generation of dir/files under pub/static not working
automatic generation of dir/files under pub/static not working. When i google about this find that i have to delete that file in which i did change and then run below given command.
php bin/magento ...
2
votes
0
answers
117
views
Magento 2.1 and symlinks
My server structure is as follows:
/var/www/htdocs_webroot/shop -> symlink to:
/var/www/shop/deploy_xxxx-xx-xx/htdocs
So I can redeploy magento easily and switch back and forth with one simple ...
2
votes
4
answers
2k
views
Magento 2: Overiding Admin Theme not working in Production Mode with CDN [SOLVED]
Magento 2: How to enable newly created admin theme & override module?
After achieving this I have a new issue now.
I'm using CDN & in Production Mode. In the Developer mode, it works fine.
...
2
votes
1
answer
186
views
Magento2, cleaning cache led to createApplication error
Instead of running cache:clean I removed the folders from var directory, now I get error index.php(38): Magento\Framework\App\Bootstrap->createApplication Even I can not deploy:content anymore :(
0
votes
1
answer
1k
views
M2 - Cannot change deploy mode to Production
I am trying to set the deploy mode on an M2 instance to Production from Developer.
On my local environment however I keep getting the error message:
Command returned non-zero exit code:
'/...
1
vote
3
answers
925
views
Magento2 compliling specific theme deploy error --area does not exist
I wanted to deply chosen theme by using the guide from here when I run magento setup:static-content:deploy --area frontend --no-fonts --theme Magento/luma the error is --area does not exist and I'm on ...
7
votes
1
answer
3k
views
Magento 2 setup:static-content:deploy symlinks
When removing all the pub/static files in Magento 2 and opening the homepage, the files are generated as symlinks. When using the command setup:static-content:deploy the files are copied, even after ...
2
votes
0
answers
579
views
Best way to deploy from dev to production?
Currently using Magento 1 for my website and I needed to deploy a new "Build" onto my live server. For the past few months, I would zip the dev server files, FTP to live server. I would also export ...
3
votes
0
answers
1k
views
Recommended continuous integration tools for Magento 2 [closed]
For companies deploying Magento 2, what CI (continuous integration) tools do you recommend? We use GitHub and commonly deploy to AWS Beanstalk instances, but some of our clients use Linux VMs on ...
5
votes
2
answers
19k
views
Fatal error: Class 'Locale' not found magento 2.0.2 [closed]
when I run this command
static-content:deploy
then I got the below error
"PHP Fatal error: Class 'Locale' not found in /opt/lampp/htdocs/magento/magento2_1/vendor/magento/framework/Locale/...
4
votes
1
answer
2k
views
magento 2.0 theme not working in 2.1
I created a theme in magento 2.0 that was working. Now, I updated the magento version to 2.1 and deployed the theme. The files get generated in pub/static folder but CSS files are not loading in head ...
0
votes
4
answers
375
views
Magento static deply command
This is my first time posting on this forum. I have installed magento 2.0.7 in a cPanel hosting account. All is going well so far, I have added almost 1000 products already and I have also installed a ...
3
votes
1
answer
5k
views
Magento 2 deploy static files for specific theme only [duplicate]
How to deploy static view files for single, specific theme only?
3
votes
1
answer
1k
views
Why I cannot switch into given mode "develop"? [duplicate]
I use this basic environment Docker, with Magento 2.1. When I was tried to change the deploy mode, the terminal shows me:
Cannot switch into given mode "develop"
The permission's ok, and I had ...
2
votes
3
answers
8k
views
Magento 2 error when try to set production mode on
I'm trying to put my Magento 2 installation into production mode, when I try it I get following error
Something went wrong while compiling generated code. See the error log for details.
Command ...
2
votes
2
answers
758
views
Deploy Magento 2 website on Staging server and Composer
I installed Magento 2 locally using Composer
I use Git to track my code
I need to deploy my local Magento 2 site to a staging server (shared
hosting)
1) For what do I need Composer anyway on Staging ...
5
votes
2
answers
8k
views
Magento 2: Can't switch from developer to production: "Command returned non-zero exit code:"
I've seen two other threads with this issue but I have been unable to resolve it with the solutions provided.
I've increased my memory limit to 1G in php.ini and I've set ini_set('memory_limit','2G')...
1
vote
1
answer
6k
views
Run Grunt deploy task -> Fatal error: Class 'Locale' not found
I NodeJs installed, I installed the Magento2 Grunt that works, but if I run the command "grunt deploy" it delete all from the folder pub/static/ but do not deploy and returns me the error below. Can ...
2
votes
1
answer
2k
views
Magento2 not auto generate static files
i've some issues with auto generating static files in pub/static folder
after use magento setup:static-content:deploy if i delete some static file generated by deploy like css and i point to the url ...
0
votes
2
answers
2k
views
Deploy Production mode via SSH gets stuck at 'Static content deployment'
So, I guess this is kinda vague and hard to explain, so I'll try to give some detail to help contextualise the problem.
I have a Magento 2.0.0 install, that I installed via cPanel's Installatron. ...
4
votes
2
answers
11k
views
Magento2 static-content:deploy not generating admin
When using:
bin/magento setup:static-content:deploy
Only the blank and luma theme will be generated but not the admin one.
Does anyone know if there is a setup somewhere to specify the themes?
7
votes
3
answers
2k
views
static-content deploy error
running static-content:deploy on multi store-view, fails with following error variable @media-common is undefined on theme where the language en_US
8
votes
4
answers
28k
views
Static content deploy issue
I am creating a custom theme. Now I added a css file, only for checkout page.
css file call by default_head_block.xml at app/design/frontent/Amit/Customtheme/Magento_Checkout/layout/
<?xml ...
1
vote
2
answers
16k
views
Running php bin/magento setup:static-content:deploy for different languages
Whenever I run php bin/magento setup:static-content:deploy it always generates files for en_US.
I would like it to generate files for en_GB instead.
How do I achieve this?
And is there a reference ...
1
vote
2
answers
2k
views
Magento 2 cutom theme is not deployed
I have created a custom theme for Magento 2 production version. I have selected my theme from the back-end. But it renders only HTML. I deployed the static content but my theme is not in the
pub\...
45
votes
7
answers
66k
views
Magento 2: How can I deploy my theme only
I was using this for deploy the content but it is taking too much time.
php bin/magento setup:static-content:deploy
then I figure out adding the language make fast but it still deploy all the ...
5
votes
3
answers
2k
views
Should a development team use a single pair of repo.magento.com keys?
I understand that in order to use composer with Magento 2, you need to set up your instance with a public key and private key per the documentation. If you’re working in a team, should the team use ...
2
votes
1
answer
523
views
What is the proper way to run an UpgradeSchema.php file in Magento 2?
In Magento 1, you updated a database schema (add a table, column, etc.) by creating an upgrade_v[Previous]_v[Current].php file, change the version number in the config.xml, and Magento would look in ...
8
votes
3
answers
29k
views
Fatal error "Allowed memory size" while run setup:static-content:deploy
I am trying to setup Magento 2.0 (community) in a WAMP server and I am getting the error below all the time while I run the command for deploy the assets static due to symlink issues at Windows ...
4
votes
3
answers
3k
views
Magento 2 Auto deploy Script using capistrano or other tools
Does anyone have a script which will deploy magento2 to the server using Capistrano or other auto deploy scripts?
Thank you.
57
votes
18
answers
120k
views
Magento2: Re generate css file in pub/static folder
I have installed Magento 2 and set developer mode, then I have installed one module that contains css and js files. The module works fine and css and js files are rendering from pub/static folder. Now ...
1
vote
0
answers
155
views
magento 1.9.x Modman vs modgit
I'm looking for best practice in order to manage magento submodules, my plan was to use modman but I've heard about modgit.
Is there any benchmark modman vs modgit?
Advantages / disadvantages or ...
1
vote
0
answers
215
views
Capistrano & Magento - Previewing new deploy and manually update symlink
I am using a Capistrano deployment workflow for a Magento project.
On deploy Capistrano builds this Magento project on the server using https://github.com/Cotya/magento-composer-installer.
The issue ...
5
votes
1
answer
565
views
What files/folder do not belong on production?
Some community members suggest that folders like downloader and dev don't belong on a production environment. Is there an official list somewhere? What else has no place on the production server?
3
votes
2
answers
581
views
Packing a extension for connect with an CI
Trying to build my extensions more automatically and without magentos GUI. I've wrote a little script, based on a blog post by Sven Varkel, it pulls a vanilla magento source base and my extension, ...
3
votes
1
answer
465
views
how to avoid site downtime on module install?
i have to run setup:upgrade command when ever installing new module in magento2.
otherwise its giving error in front end.but if any user browsing on this time it will give error.how to handle this ...
1
vote
1
answer
121
views
Preserve Maintenance Mode during Magento Core Deployment
On remote webserver, i am deploying Magento core and modules through modman and Jenkins. During the deployment, a static maintenance page is shown which i enable and disable by the file maintenance....
6
votes
1
answer
2k
views
Magento upgrade best practices - moving from dev to production
I see very little existing posts ANYWHERE about best practices for managing upgrades so I'm hoping this helps me and others.
I have 2 Magento Environments:
Production/Live: Running 1.7.0.0
...
1
vote
3
answers
75
views
Capistrano deployments to an nginx webserver results in bad asset URLs
I am using Capistrano to deploy Magento code to a webserver that is running nginx. Nginx web root for test.url.com is /var/www/html, which on the filesystem is a symlink to /opt/magento-codebase/...
10
votes
2
answers
625
views
One Chef to Rule Them All
I'm looking into chef to automate Magento deployments — both into standard Magento hosting options as well as environments like EC2. I've googled around and I see numerous recipes, but none really ...