Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28342

CF plugin: cannot use $PORT to start Rails project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • cflint-plugin
    • None

      When using the CF plugin, we have a serious issue to use our command line in our manifest. The system complaint about not recognizing the $PORT. If we remove it, the deployment is passing from a perspective of delivering but the app is not started as CF do not recognize the default port 3000 (this is what is happening if we are not indicating the $PORT which is set by CF when deploying normally).

      Is there a way to workaround this in Jenkins?

      Here is the command in the manifest.yml we are using to start our app:

      command: bundle exec rails s Puma -p $PORT -e production
      

      Thank you

            Unassigned Unassigned
            francoisyanick Francois-Yanick Bourassa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: