There are basically two ways to setup your ownership and permissions. Either you give yourself ownership or you make the webserver the owner of all files.
Assuming www-data
is your webserver user.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>MediaCapture and Streams API</title> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<body> | |
<header> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Ionic App</title> | |
<base href="/" /> | |
<meta | |
name="viewport" |
sudo add-apt-repository ppa:pinepain/libv8-5.2 | |
sudo apt-get update | |
sudo apt-get install libv8-5.2 | |
sudo pecl install v8js | |
sudo su | |
echo "extension=v8js.so" >> /etc/php/7.1/fpm/php.ini | |
echo "extension=v8js.so" >> /etc/php/7.1/cli/php.ini | |
exit | |
sudo service nginx restart && sudo service php7.1-fpm restart |
Below is a full tutorial on how to setup and use Googles Firebase push notification API for both Android and iOS. It is based on this | |
earlier implementation of Googles GCM method: https://gist.github.com/prime31/5675017 - FCM is the new method and GCM will eventually be | |
retired. | |
## THE BELOW METHOD IS THE NEWER FCM METHOD: | |
Register your app in the FCM Console: https://console.firebase.google.com (add project) | |
1. Click on the newly added project, in the upper left menu is the "Overview" and Gear Settings. | |
2. Click on the GEAR settings icon, and then on "Project Settings" | |
3. In the main screen, click on "Cloud Messaging" |