Skip to content

Instantly share code, notes, and snippets.

@hamzaakhtar953
Last active August 25, 2021 23:49
Show Gist options
  • Save hamzaakhtar953/25be59dda8eb8bd6efd7cb02eb10f876 to your computer and use it in GitHub Desktop.
Save hamzaakhtar953/25be59dda8eb8bd6efd7cb02eb10f876 to your computer and use it in GitHub Desktop.
ReactJS Project Deployment Tips

Folder Creation or Write Issues Ubuntu. (Set permissions for the current user)

  • cd /var/www/ (Jump to the directory first where you want to set permissions)
  • sudo chown -Rv root:$USER . (The Dot is inclusive. Same for below)
  • sudo chmod -Rv g+rw .
  • sudo chmod a+rwx /path/to/file (Use this command for write permissions)
  • Now try creating a folder

404 Issue during refresh. Try the following configuration

location / {
         try_files $uri $uri/ /index.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment