Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commented lines in Procfile causing problem again #24

Open
sglebs opened this issue Dec 3, 2015 · 1 comment
Open

commented lines in Procfile causing problem again #24

sglebs opened this issue Dec 3, 2015 · 1 comment

Comments

@sglebs
Copy link
Contributor

sglebs commented Dec 3, 2015

Despite my fix in #18 , now with dokku 0.4.x I am having problems pushing the same Procfile with commented out lines:

remote: /usr/local/bin/dokku: line 112: [[: # b) after you have a migration script from : syntax error: operand expected (error token is "# b) after you have a migration script from ")
remote: /usr/local/bin/dokku: line 177: # b) after you have a migration script from : syntax error: operand expected (error token is "# b) after you have a migration script from ")
To [email protected]:softdispdjango-dev
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:softdispdjango-dev'

The Procfile:

web: python manage.py collectstatic --noinput; gunicorn -c gunicorn_config.py main.wsgi
cronloop: python dashboard/cron/cron_loop.py
#weblocal: gunicorn main.wsgi
# a) if you change the model, run this to generate a migration script:
#export PYTHONPATH=$PYTHONPATH:$PWD;export DJANGO_SETTINGS_MODULE=main.settings;django-admin makemigrations --dry-run
# repeat without the --dry-run
# b) after you have a migration script from #a above, run this:
#python manage.py migrate --fake-initial
# run this from cron to take health snapshots (every 10 mins?):
#healthsnapshot: python dashboard/cron/take_health_snapshot.py
# run this from cron to take newrelic snapshots (every 10 mins?):
#newrelicsnapshot: python dashboard/cron/take_newrelic_snapshot.py
# run this from cron to delete old health snapshots (every 24h?):
#prunehealthsnapshots: python dashboard/cron/delete_old_data_snapshots.py
@sglebs
Copy link
Contributor Author

sglebs commented Dec 3, 2015

It seems to be a problem in dokku 0.4.5 itself. Even after disabling the plugin I have the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant