Skip to content
프로젝트

소개

ROS.org 메인 랜딩 페이지입니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+3
in 15 days
+5
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ROS.org Website

This is a static site built using Nanoc running in Docker.

Quickstart

Requires docker-compose.

$ docker compose build
$ docker compose up

Browse to http://localhost:3000 to see the site. Changes you make to the content and layouts are automatically reloaded via a websocket on port 35729. The generated static site files will appear in output directory.

Docker Compose Upgrade

If you get an error like, kwargs = kwargs_from_env(environment=environment, ssl_version=tls_version) it may be related to docker-compose versions. See this link. On gLinux I had to upgrade manually.

Local Development Setup

sudo apt install ruby
sudo gem install bundler 0v 2.3.26
bundle install
ruby Rakefile

Commands can be run as:

rake new_post["My Post Name"]

New post will be created in ./blog/YYYY-MM-DD-My-Post-Name

Directions from Developer

web rake new_post
web rake new_post['A clever blog post title']

Generate a new blog post using the rake task above. It lands in the blog directory. Giving the rake task a string for the argument sets the post's title.

web rake new_robot
web rake new_robot['R2-D2']

Generate a new blog post using the rake task above. It lands in the robots directory. Giving the rake task a string for an argument sets the robot's title.

First Time Setup

Make sure Docker / Docker Compose are installed and have the correct permissions. Add docker to your user group by replacing $USER to your username.

sudo usermod -aG docker $USER
newgrp docker

Now, you need to tell the upload script where to look for the SSH key file for the ros.org host. To do this edit: ~/.ssh/config and add the following.

Host ros1.osuosl.org osuoslros
     User ros
     HostName ros2.osuosl.org
     ForwardAgent yes
     ServerAliveInterval 30
     ServerAliveCountMax 4
     IdentityFile ~/.ssh/id_rsa    <== your ssh key for the host
     IdentitiesOnly yes

Now build the site.

$ docker compose build

If you would like to take a look at the website you can run docker-compose up. This should launch a local website at the location localhost:3000

$ docker compose up

Finally upload it to the host.

./upload.bash

관련 프로젝트 살펴보기

불러오는 중…