Place a DIV side by side with a SPAN, inside another DIV

I need to place the promo div in the right side of the alert div, just like this:

enter image description here

Please, can some CSS expert help me with this code: https://jsfiddle.net/08rnpxbt/4/

<body>
<div class="alert" style="width:530px; margin:0 auto 10px auto;">
  <span>
      <b>Windows 7 Home Premium - 02 License(s)</b><br>
      Price: U$ 225.00 up to 10X or R$ 210.00 in cash
  </span>
  <div id="promo">15,00% de desconto !</div>
</div>
</body>

body {
    width:640px;
    float:left;
    margin:0 6px 0 6px;
    padding:18px;
    font-family:Arial, Helvetica, sans-serif;
}
p { 
    padding:0;
    margin:8px 0 0 0;
}
div.alert {
    padding:8px 12px 8px 12px;
    margin:20px auto 20px auto;
    text-align:justify;
    border:2px solid #389CF2;
    border-radius:8px;
    background-color:#F5F5F5;
    background-image:url(http://i61.tinypic.com/1oxi50.png);
    background-repeat:no-repeat;
    background-position:8px 11px;
}
div.alert span {
    display:block;
    //float:left;
    padding-bottom:2px;
    margin-left:40px;
    font-size:15px;
    line-height:1.3em;
    color:#5C5C5C;
}
div#promo {
    display:block;
    width:80px;
    height:32px;
    padding:4px 2px 2px 2px;
    text-align:center;
    line-height:15px;
    font-size:14px;
    color:#FF0000;
    border:2px dotted #585858;
    border-radius:16px;
    background-color: #FFFFD5;
}

read more

Place a DIV side by side with a SPAN, inside another DIV

I need to place the promo div in the right side of the alert div, just like this:

enter image description here

Please, can some CSS expert help me with this code: https://jsfiddle.net/08rnpxbt/4/

<body>
<div class="alert" style="width:530px; margin:0 auto 10px auto;">
  <span>
      <b>Windows 7 Home Premium - 02 License(s)</b><br>
      Price: U$ 225.00 up to 10X or R$ 210.00 in cash
  </span>
  <div id="promo">15,00% de desconto !</div>
</div>
</body>

body {
    width:640px;
    float:left;
    margin:0 6px 0 6px;
    padding:18px;
    font-family:Arial, Helvetica, sans-serif;
}
p { 
    padding:0;
    margin:8px 0 0 0;
}
div.alert {
    padding:8px 12px 8px 12px;
    margin:20px auto 20px auto;
    text-align:justify;
    border:2px solid #389CF2;
    border-radius:8px;
    background-color:#F5F5F5;
    background-image:url(http://i61.tinypic.com/1oxi50.png);
    background-repeat:no-repeat;
    background-position:8px 11px;
}
div.alert span {
    display:block;
    //float:left;
    padding-bottom:2px;
    margin-left:40px;
    font-size:15px;
    line-height:1.3em;
    color:#5C5C5C;
}
div#promo {
    display:block;
    width:80px;
    height:32px;
    padding:4px 2px 2px 2px;
    text-align:center;
    line-height:15px;
    font-size:14px;
    color:#FF0000;
    border:2px dotted #585858;
    border-radius:16px;
    background-color: #FFFFD5;
}

read more

Running heroku CLI commands (rake db:migrate) from Resque worker

I’m trying to run heroku CLI commands like:

heroku run rake db:migrate --app app-name
heroku run rake db:seed --app app-name

from a Resque worker running in the background.

If I run the worker in the foreground with:

RAILS_ENV=production rake resque:work QUEUE="*"

the process completes successfully, and the rake tasks are run.

However, when the worker is started like so:

RAILS_ENV=production PIDFILE=./resque.pid BACKGROUND=yes QUEUE="*" rake resque:work >>  worker1.log

the processes silently fail with no indication of what happened in the logs. Is there a way to run these tasks in the background?

read more

Running heroku CLI commands (rake db:migrate) from Resque worker

I’m trying to run heroku CLI commands like:

heroku run rake db:migrate --app app-name
heroku run rake db:seed --app app-name

from a Resque worker running in the background.

If I run the worker in the foreground with:

RAILS_ENV=production rake resque:work QUEUE="*"

the process completes successfully, and the rake tasks are run.

However, when the worker is started like so:

RAILS_ENV=production PIDFILE=./resque.pid BACKGROUND=yes QUEUE="*" rake resque:work >>  worker1.log

the processes silently fail with no indication of what happened in the logs. Is there a way to run these tasks in the background?

read more