1
0
Fork 0
mirror of synced 2024-06-30 20:21:16 +12:00

Merge branch '0.7.x' of github.com:appwrite/appwrite into feat-511-jwt-support

This commit is contained in:
Eldad Fux 2020-10-27 20:10:36 +02:00
commit 3426b82de6
8 changed files with 19 additions and 24 deletions

View file

@ -32,7 +32,7 @@ before_install:
install: install:
- docker --version - docker --version
- docker-compose up -d - docker-compose up -d
- sleep 15 - sleep 60
script: script:
- docker ps - docker ps

View file

@ -14,9 +14,9 @@ RUN composer update --ignore-platform-reqs --optimize-autoloader \
FROM php:7.4-cli-alpine as step1 FROM php:7.4-cli-alpine as step1
ENV TZ=Asia/Tel_Aviv \ ENV PHP_REDIS_VERSION=5.3.0 \
PHP_REDIS_VERSION=5.3.0 \ PHP_SWOOLE_VERSION=v4.5.6 \
PHP_SWOOLE_VERSION=4.5.6 \ PHP_MAXMINDDB_VERSION=v1.8.0 \
PHP_XDEBUG_VERSION=sdebug_2_9-beta PHP_XDEBUG_VERSION=sdebug_2_9-beta
RUN \ RUN \
@ -26,8 +26,6 @@ RUN \
autoconf \ autoconf \
gcc \ gcc \
g++ \ g++ \
tar \
wget \
git \ git \
zlib-dev \ zlib-dev \
brotli-dev \ brotli-dev \
@ -37,9 +35,9 @@ RUN docker-php-ext-install sockets
RUN \ RUN \
# Redis Extension # Redis Extension
wget -q https://github.com/phpredis/phpredis/archive/$PHP_REDIS_VERSION.tar.gz && \ git clone https://github.com/phpredis/phpredis.git && \
tar -xf $PHP_REDIS_VERSION.tar.gz && \ cd phpredis && \
cd phpredis-$PHP_REDIS_VERSION && \ git checkout $PHP_REDIS_VERSION && \
phpize && \ phpize && \
./configure && \ ./configure && \
make && make install && \ make && make install && \
@ -47,14 +45,16 @@ RUN \
## Swoole Extension ## Swoole Extension
git clone https://github.com/swoole/swoole-src.git && \ git clone https://github.com/swoole/swoole-src.git && \
cd swoole-src && \ cd swoole-src && \
git checkout v$PHP_SWOOLE_VERSION && \ git checkout $PHP_SWOOLE_VERSION && \
phpize && \ phpize && \
./configure --enable-sockets --enable-http2 && \ ./configure --enable-sockets --enable-http2 && \
make && make install && \ make && make install && \
cd .. && \ cd .. && \
## Maxminddb extension ## Maxminddb extension
git clone https://github.com/maxmind/MaxMind-DB-Reader-php.git && \ git clone https://github.com/maxmind/MaxMind-DB-Reader-php.git && \
cd MaxMind-DB-Reader-php/ext && \ cd MaxMind-DB-Reader-php && \
git checkout $PHP_MAXMINDDB_VERSION && \
cd ext && \
phpize && \ phpize && \
./configure && \ ./configure && \
make && make install && \ make && make install && \
@ -66,8 +66,7 @@ LABEL maintainer="team@appwrite.io"
ARG VERSION=dev ARG VERSION=dev
ENV TZ=Asia/Tel_Aviv \ ENV _APP_SERVER=swoole \
_APP_SERVER=swoole \
_APP_ENV=production \ _APP_ENV=production \
_APP_DOMAIN=localhost \ _APP_DOMAIN=localhost \
_APP_DOMAIN_TARGET=localhost \ _APP_DOMAIN_TARGET=localhost \

View file

@ -14,7 +14,7 @@
[![Twitter Account](https://badgen.net/twitter/follow/appwrite_io?label=twitter)](https://twitter.com/appwrite_io) [![Twitter Account](https://badgen.net/twitter/follow/appwrite_io?label=twitter)](https://twitter.com/appwrite_io)
[![Follow Appwrite on StackShare](https://badgen.net/badge/follow%20on/stackshare/blue)](https://stackshare.io/appwrite) [![Follow Appwrite on StackShare](https://badgen.net/badge/follow%20on/stackshare/blue)](https://stackshare.io/appwrite)
Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster. Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker<nobr> microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster.
Using Appwrite, you can easily integrate your app with user authentication & multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, schedule CRON tasks, and [more services](https://appwrite.io/docs). Using Appwrite, you can easily integrate your app with user authentication & multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, schedule CRON tasks, and [more services](https://appwrite.io/docs).
@ -141,7 +141,7 @@ For security issues, kindly email us at [security@appwrite.io](mailto:security@a
## Follow Us ## Follow Us
Join our growing community around the world! Follow us on [Twitter](https://twitter.com/appwrite_io), [Facebook Page](https://www.facebook.com/appwrite.io), [Facebook Group](https://www.facebook.com/groups/appwrite.developers/) or join our live [Discord server](https://discord.gg/GSeTUeA) for more help, ideas, and discussions. Join our growing community around the world! See our official [Blog](https://medium.com/appwrite-io). Follow us on [Twitter](https://twitter.com/appwrite_io), [Facebook Page](https://www.facebook.com/appwrite.io), [Facebook Group](https://www.facebook.com/groups/appwrite.developers/) or join our live [Discord server](https://discord.gg/GSeTUeA) for more help, ideas, and discussions.
## License ## License

View file

@ -93,7 +93,7 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo
return; return;
} }
$app = new App('Asia/Tel_Aviv'); $app = new App('America/New_York');
try { try {
$app->run($request, $response); $app->run($request, $response);

View file

@ -29,10 +29,7 @@ foreach ([
realpath(__DIR__ . '/../vendor/twig/twig'), realpath(__DIR__ . '/../vendor/twig/twig'),
realpath(__DIR__ . '/../vendor/guzzlehttp/guzzle'), realpath(__DIR__ . '/../vendor/guzzlehttp/guzzle'),
realpath(__DIR__ . '/../vendor/domnikl'), realpath(__DIR__ . '/../vendor/domnikl'),
realpath(__DIR__ . '/../vendor/geoip2'),
realpath(__DIR__ . '/../vendor/domnikl'), realpath(__DIR__ . '/../vendor/domnikl'),
realpath(__DIR__ . '/../vendor/maxmind'),
realpath(__DIR__ . '/../vendor/maxmind-db'),
realpath(__DIR__ . '/../vendor/psr/log'), realpath(__DIR__ . '/../vendor/psr/log'),
realpath(__DIR__ . '/../vendor/piwik'), realpath(__DIR__ . '/../vendor/piwik'),
realpath(__DIR__ . '/../vendor/symfony'), realpath(__DIR__ . '/../vendor/symfony'),

View file

@ -219,15 +219,14 @@ $cli
Console::log(''); Console::log('');
$version = \json_decode(@\file_get_contents(App::getEnv('_APP_HOME', 'http://localhost').'/v1/health/version'), true); $version = \json_decode(@\file_get_contents(App::getEnv('_APP_HOME', 'http://localhost').'/v1/health/version'), true);
if($version && isset($version['version'])) { if ($version && isset($version['version']) && App::isProduction()) {
if(\version_compare($version['version'], App::getEnv('_APP_VERSION', 'UNKNOWN')) === 0) { if(\version_compare($version['version'], App::getEnv('_APP_VERSION', 'UNKNOWN')) === 0) {
Console::info('You are running the latest version of '.APP_NAME.'! 🥳'); Console::info('You are running the latest version of '.APP_NAME.'! 🥳');
} }
else { else {
Console::info('A new version ('.$version['version'].') is available! 🥳'."\n"); Console::info('A new version ('.$version['version'].') is available! 🥳'."\n");
} }
} } else {
else {
Console::error('Failed to check for a newer version'."\n"); Console::error('Failed to check for a newer version'."\n");
} }
} catch (\Throwable $th) { } catch (\Throwable $th) {

View file

@ -22,6 +22,6 @@ error_reporting(E_ALL);
include __DIR__ . '/../app/controllers/general.php'; include __DIR__ . '/../app/controllers/general.php';
$app = new App('Asia/Tel_Aviv'); $app = new App('America/New_York');
$app->run(new Request(), new Response()); $app->run(new Request(), new Response());

View file

@ -236,7 +236,7 @@ class Client
$responseHeaders['status-code'] = $responseStatus; $responseHeaders['status-code'] = $responseStatus;
if($responseStatus === 500) { if($responseStatus === 500) {
echo 'Server error(!): '.json_encode($responseBody)."\n"; echo 'Server error('.$method.': '.$path.'. Params: '.json_encode($params).'): '.json_encode($responseBody)."\n";
} }
return [ return [