procfile

    0熱度

    3回答

    我用Procfile與web: python manage.py runserver '0.0.0.0:$PORT'第一次成功啓動,但首先git push後,與此錯誤崩潰: OperationalError at/ could not connect to server: Connection refused Is the server running on host "127.0.0

    5熱度

    3回答

    我跟着官方Heroku docs on Django and Static Assets;我已經安裝dj-static,並把它添加到我的requirements.txt文件,正確地在我settings.py文件中配置所有的變量: STATIC_ROOT = os.path.join(CONFIG_ROOT, 'served/static/') STATIC_URL = '/static

    1熱度

    1回答

    我有一個節點應用程序,它具有本地npm模塊npm link ./local,我試圖將該應用程序部署到heroku。 Heroku在我部署時運行npm install,但npm link的未保存在package.json中,因此我的本地模塊丟失。 我是新來的heroku和Procfiles,我想運行一個腳本或只是在heroku方塊上運行npm link ./local。 或者我可以把模塊放在gith

    7熱度

    1回答

    我想設置一個Heroku-ready燒瓶應用程序,但我無法弄清楚如何打開日誌記錄。 沒有工頭,我作爲Flask tutorial描述可以創建的HelloWorld應用程序: from flask import Flask app = Flask(__name__) @app.route("/") def hello(): app.logger.debug('A value for

    0熱度

    1回答

    我無法讀取大於緩衝區的proc文件。我看過這兩個問題,我想我錯過了一些東西。我是否正確使用buffer_location指針? How can I read large data from proc file? how read to the end of /proc file int procfile_read(char *buffer, char **buffer_location, off_

    2熱度

    1回答

    鑑於兩個目錄:/a和/b 而/a/.ruby-version有2.0.0-p353 而/b/.ruby-version有jruby-1.7.9 而以下/a/Procfile a: ruby --version b: sh -c 'cd /b && ruby --version' 當我cd /a和運行foreman run b 然後我應該看到jruby 1.7.9 .. etc而是我看到2.0

    0熱度

    2回答

    我有一個Procfile我跟工頭用它來開始我的地方的Redis和使用WEBrick服務器: web: bundle exec rails server -p $PORT redis: redis-server config/redis.development.conf 我連接使用在配置中定義這樣一個名爲套接字的Redis: unixsocket /tmp/redis-APPNAME.sock

    1熱度

    1回答

    The Heroku docs indicate您可以設置環境變量以便在proc文件中使用。我正在嘗試設置一個SIDEKIQ_CONCURRENCY變量,以便我的分段環境爲我的生產環境分配的Sidekiq工作量更少。 我設置像這樣的新變量: heroku config:set SIDEKIQ_CONCURRENCY=3 --app mystaging heroku config:set SIDE

    0熱度

    1回答

    問題使用下面的教程和github上的模板here,here和here,我已經花了使用Django和夾層晚上摔跤更好的一部分。現在我有一個mezzanine-project,叫做uccdev,當我運行python manage.py runserver時,它工作的很好。 現在,我想使用gunicorn和foreman與事情合作,以便日後可以將我的項目上傳到heroku。 據Josh Finnie,

    0熱度

    1回答

    我想用Recap與Capistrano部署我的Rails 4應用程序。在docs,它說: 紅寶石配方包括工頭支持,啓動和重新啓動Procfile中定義的過程。 我的應用程序需要兩個進程重新啓動每個部署: 客運 延遲招聘 我在Procfile添加gem 'foreman'我的Gemfile,我的嘗試是: # Procfile web: sudo service nginx restart wor