前提・実現したいこと
cloud9上でプレビューがみたい
PHPでカレンダーアプリを作成中です。毎日プレビュー出来ていたのに急にプレビュー出来なくなりました。
前日寝る前に実際に動く事は確認してます。
発生している問題・エラーメッセージ
cloud9↓
One or more other sessions or collaborators are active on this environment. Switching to the minimal code completion engine to conserve memory.``
エラーメッセージ
CSS↓
bash: line 1: styles.css: command not found
Process exited with code: 127
該当のソースコード
CSS PHP
ソースコード
body {
font-family: Arial, sans-serif;
font-size: 14px;
}
a {
text-decoration: none;
}
table {
margin: 15px auto;
border: 1px solid #ddd;
border-collapse: collapse;
}
th {
background: #eee;
}
th, td {
padding: 7px;
text-align: center;
}
.youbi_0 {
color: red;
}
.youbi_6 {
color: blue;
}
.today {
font-weight: bold;
}
.gray {
color: #dedede;
}
<?php
function h($s){
return htmlspecialchars($s, ENT_QUOTES, 'UTF-8');
}
try{
if (!isset($_GET['t']) || !preg_match('/\A\d{4}-\d{2}\z/', $_GET['t'])){
throw new Exception();
}
$thisMonth = new DateTime($_GET['t']);
} catch (Exception $e) {
$thisMonth = new DateTime('first day of this month');
}
$dt = clone $thisMonth;
$prev = $dt->modify('-1 month')->format('Y-m');
$dt = clone $thisMonth;
$next = $dt->modify('+1 month')->format('Y-m');
$yearMonth = $thisMonth->format('F Y');
$tail = '';
$lastDayOfPrevMonth = new DateTime('last day of ' . $yearMonth . ' -1 month');
while ($lastDayOfPrevMonth->format('w') < 6 ){
$tail = sprintf('<td class="gray">%d</td>', $lastDayOfPrevMonth->format('d')) . $tail;
$lastDayOfPrevMonth->sub(new DateInterval('P1D'));
}
$body = '';
$period = new DatePeriod(
new DateTime('first day of ' . $yearMonth),
new DateInterval('P1D'),
new DateTime('first day of ' . $yearMonth . '+1 month')
);
$today = new DateTime('today');
foreach ($period as $day) {
if ($day->format('w') % 7 === 0) { $body .= '</tr><tr>'; }
$todayclass = ($day->format('Y-m-d') === $today->format('Y-m-d')) ? 'today' : '';
$body .= sprintf('<td class="youbi_%d %s">%d</td>', $day->format('w'), $todayclass,$day->format('d'));
}
$head = '';
$firstDayOfNextMonth = new DateTime('first day of ' . $yearMonth . ' +1 month');
while ($firstDayOfNextMonth->format('w') > 0) {
$head .= sprintf('<td class="gray">%d</td>', $firstDayOfNextMonth->format('d'));
$firstDayOfNextMonth->add(new DateInterval('P1D'));
}
$html = '<tr>' . $tail . $body . $head . '</tr>';
?>
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Calendar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<table>
<thead>
<tr>
<th><a href="/?t=<?php echo h($prev); ?>">«</a></th>
<th colspan="5"><?php echo h($yearMonth); ?></th>
<th><a href="/?t=<?php echo h($next); ?>">»</a></th>
</tr>
</thead>
<tbody>
<tr>
<td>Sun</td>
<td>Mon</td>
<td>Tue</td>
<td>Wed</td>
<td>Thu</td>
<td>Fri</td>
<td>Sat</td>
</tr>
<?php echo $html; ?>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="7"><a href="/">Today</a></th>
</tr>
</tfoot>
</table>
</body>
</html>
試したこと
runnerの変更
サインイン サインアウト
補足情報(FW/ツールのバージョンなど)
関係無いとは思いますがdookeeperにてgithubとの連携をしました。