Commit
69977e49b6c81d9dc44fe20d90a288b6e3bbb764
Exists in
staging
and in
26 other branches
angular_poc, api-article-archived, api-homepage, api_visitor, article-readonly, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, content-manager-hostspot, environment-api, export-comment-paragraph, fix_event_date_issue, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, pg_search_rank, production, resend_confirmation_email, tasks_keep_filter_params
Be able to use an environment other than production
| @@ -2,4 +2,7 @@ |
| @@ -2,4 +2,7 @@ |
2
| |
2
| |
3
| set -e |
3
| set -e |
4
| |
4
| |
5
| -cd /usr/share/noosfero && su noosfero -c "./script/console production" |
5
| +environment="$1" |
| |
6
| +test -z "$environment" && environment=production |
| |
7
| + |
| |
8
| +cd /usr/share/noosfero && su noosfero -c "./script/console $environment" |