1

Hi I had installed magento2 with sample data. I would deploy static css/JS but the command php bin/magento setup:static-content:deploy it return 0 error but the problem still here. Also I can't find deploy.php file in the standard dir.

2
  • Can you attach the screenshot of error you get after clicking php bin/magento setup:static-content:deploy? Are you running your project on Linux or Ubuntu? Commented Dec 7, 2015 at 6:40
  • deploy.php was used in magento1, which has been removed in magento2 so that commands are consistent with Symfony's CLI. Commented Dec 7, 2015 at 16:36

3 Answers 3

4

Use below command for import sample data

php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush

Sign up to request clarification or add additional context in comments.

Comments

0

You have written

"bin/magento setup:static-content:deploy it"

but it should be

"bin/magento setup:static-content:deploy"

or

"bin/magento setup:static-content:deploy language_code"

Comments

0

You can use below command to deploy pub/static contents: -

php bin/magento setup:static-content:deploy en_US es_ES

en_US and es_ES are the language directory.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.