#Yii2 basic htaccess
a. Automatic setting index.php
This method created .htaccess files automatically and clear self.
#Yii2 basic htaccess
This method created .htaccess files automatically and clear self.
<?php | |
namespace App\Traits; | |
trait FullTextSearch | |
{ | |
/** | |
* Replaces spaces with full text search wildcards | |
* | |
* @param string $term |
before_script: | |
- echo 'Before script' | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
- eval $(ssh-agent -s) | |
- mkdir -p ~/.ssh | |
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - | |
- chmod 700 ~/.ssh | |
- ssh-keyscan -H 'domain.com' >> ~/.ssh/known_hosts | |
- chmod 644 ~/.ssh/known_hosts | |
building: |
[program:horizon] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /var/www/ub-admin-client/artisan horizon | |
autostart=true | |
autorestart=true | |
user=fixable | |
startsecs = 0 | |
redirect_stderr=true | |
stdout_logfile=/var/www/ub-admin-client/storage/logs/horizon.log | |
stopwaitsecs=3600 |
var commentSchema = new Schema({ | |
postId: { | |
type: String, | |
hashKey: true | |
}, | |
id: { | |
type: String, | |
rangeKey: true, | |
default: shortId.generate |