Правильно ли размышляю, основная цель сейчас сделать портфолио с проектами небольшими
в своем городе не понравились и я почти сразу уходил
//версия указана?
services:
mongodb:
image: mongo:latest
restart: always
ports: //порт ещё
- 27017:27017
networks:
- site
web:
build: ./src
restart: always
command: python src/manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
networks:
- site
networks:
site:
driver: bridge
git push origin master:front-end
! [rejected] master-> front-end (non-fast-forward)
error: failed to push some refs to 'https://github.com/kek/kek.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
public class Program
{
public static void Main(string[] args)
{
}
}
192.168.50.5 privet.ru
server {
listen 80;
server_name privet.ru;
location / {
proxy_pass http://localhost:8081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
sudo nginx -t
//nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
//nginx: configuration file /etc/nginx/nginx.conf test is successful
sudo systemctl restart nginx
selected="selected"
if (hasCyrilic($str) and hasSimleSymbols()) {
... какой-то код.
}
foreach ($array as $item) // У вас почему-то $products as $products
{
<div class="item_main" id="<?= $item['id'] ?>">
<div><?= $item['id'] ?></div>
<div><?= $item['name'] ?></div>
<div><?= $item['desc'] ?></div>
</div>
}
"autoload": {
"psr-4": {
"Spaceatmoon\\": "src/",
"Mue\\": "src/hue/mue"
}
},
php composer.phar dump-autoload
$array = [1933, 1732, 1523] // и дальше
function itime() {
//Текущее время
$nt = date('Y:m:d:G:i:s:', time());
list($year,$month,$day, $hour, $min, $sec) = explode(':', $nt);
$arrayTime = [1933, 1732, 1523, 1261, 1436,1436,1436,14361436,
1436,1436,1436,1436,1436,1436,1436,1436,1436,2265,22652265,2265,2265,2265];
//Узнаём ближайший час
return $arrayTime[$hour];
}
echo itime();