我想使用Bundler安装较旧版本的Puma gem。根据{{3}},我可以确定需要<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$sql = ("SELECT thb_id FROM thumbnails LIMIT 10");
$result=mysqli_query($connection,$sql);
$count = mysqli_num_rows($result);
if(isset($_GET['thb_id'])) {
$page = preg_replace('#[^0-9]#', '', $_GET['thb_id']);
} else {
$page = 1;
}
$lastPage = $count;
if($page < 1) {
$page = 1;
} else if($page > $lastPage) {
$page = 1;
}
?>
才能正常工作。
每次安装此gem时,我都想使用该选项。我知道我可以将其添加到--with-opt-include=/usr/local/opt/openssl/include
...
bundle config
...但我只想申请Puma v2.9.0。这可能吗?
答案 0 :(得分:1)
gem install puma -v '2.9.0' -- --with-opt-include=/usr/local/opt/openssl/include
OR
bundle config build.puma /path/to/local/git/puma/2.9.0 -- --with-opt-include=/usr/local/opt/openssl/include