padrino에서 환경을 지정하는 플래그는 -e
입니다. 그래서 명령은 다음과 같습니다
padrino start -e production
또는
RACK_ENV=production padrino s
공지 사항 귀하의 경우 RACK_ENV='production'
에 'production'
따옴표를 얼마나. 그들을 제거하고 시도해야합니다. padrino documentation에서
, 다른 가능한 조합은 다음과 같습니다
# starts the app server (non-daemonized)
$ padrino start
# starts the app server (daemonized) with given port, environment and adapter
$ padrino start -d -p 3000 -e development -a thin
# Stops a daemonized app server
$ padrino stop
# Bootup the Padrino console (irb)
$ padrino console
# Run/List tasks
$ padrino rake
# Run piece of code in the context of Padrino (with given environment)
$ padrino runner 'puts Padrino.env' -e development
# Run Ruby file in the context of Padrino
$ padrino r script/my_script.rb