Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing header / footer background image #393

Closed
sn17091004 opened this issue Aug 27, 2018 · 4 comments
Closed

Error importing header / footer background image #393

sn17091004 opened this issue Aug 27, 2018 · 4 comments

Comments

@sn17091004
Copy link

Hi,

I cloned this repo and running it locally. The background images for header and footer sections are not loaded and they failed. With the following errors

  1. (index):46 GET http://0.0.0.0:8000/bbaeb5f32b7042f0def39648a1d111b9.png 0 ()
  2. Request URL: http://0.0.0.0:8000/bbaeb5f32b7042f0def39648a1d111b9.png -> Warning provisional headers are shown.

Not able to find from google how to fix this. Any help will be appreciated.

Thanks.

@yogesh27
Copy link

I also saw this issue. You can fix this issue by making below edits to webpack.config.dev.js:

In 'output' key of config file, use this publicPath: '/'

@sn17091004
Copy link
Author

This solution fixed my issue. Please note : I had to do ctrl+c and then do npm run start again to make this work.

@yogesh27
Copy link

You had to do ctrl+c and the npm run start because you made changes in webpack.config.js file and I believe nodemon is not listening/watching to webpack changes.

@sn17091004
Copy link
Author

Hi,

I am following this tutorial https://medium.com/@Keithweaver_/setting-up-mern-stack-on-aws-ec2-6dc599be4737 and trying to deploy this app.

However, I am stuck in this step pm2 start server.js -- --production . It is throwing error but there is no description of error / logs.

Have anyone deployed this app to EC2 with PM2 ? Can you please help in deploying this app ?

Or is there anything wrong with this command pm2 start server.js -- --production

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants