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

Configuration file could not be writened #10

Open
sumkincpp opened this issue Jan 29, 2013 · 3 comments
Open

Configuration file could not be writened #10

sumkincpp opened this issue Jan 29, 2013 · 3 comments

Comments

@sumkincpp
Copy link

Cannot deploy app, so what could be wrong?

fedor@asp593 ~/Code/symfony2/lpct $ git push heroku master
Counting objects: 219, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (175/175), done.
Writing objects: 100% (204/204), 28.85 KiB, done.
Total 204 (delta 114), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Symfony2 app detected
-----> Symfony2 Heroku Buildpack: Slug compilation start
---------> Move application files into 'www' folder
---------> Install vendors
-------------> Install Nginx
-----------------> Download Nginx...
---------------------> 100%
-----------------> Install Nginx configuration file
Traceback (most recent call last):
  File "/tmp/buildpack_1w6lzqxt9bihr/bin/compile", line 23, in <module>
    compiler.compile()
  File "/tmp/buildpack_1w6lzqxt9bihr/lib/compiler.py", line 42, in compile
    self.install_vendors()
  File "/tmp/buildpack_1w6lzqxt9bihr/lib/compiler.py", line 116, in install_vendors
    conffile = open('conf/nginx.conf', 'w')
IOError: [Errno 2] No such file or directory: 'conf/nginx.conf'
 !     Heroku push rejected, failed to compile Symfony2 app

To [email protected]:lpct.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:lpct.git'
@Swop
Copy link
Owner

Swop commented Jan 30, 2013

Hi,

First I would like to warn you that this buildpack is in heavy development stage, and it's not quite ready for production usage.

The issue here is, for now, that you have to store the Nginx configuration file in your project directory.
It have to be placed in the app/heroku/{SYMFONY_ENV}/conf/ directory (i.e. : app/heroku/dev/conf or app/heroku/prod/conf depending on the SF_ENV config value attached to your Heroku app).

The required nginx.conf file is passed to the erb process so you can use this file as a template (usefull to map the listen port to the 'PORT' environment var).

Some template sample files will be added soon, but in the meantime you can search for basic nginx configuration file for Symfony project on the web.

If there's something you want to know, feel free to ask 😃

@sumkincpp
Copy link
Author

Thanks for reply, I understand that your extension is under heavy development but nevertheless it could be better If you'll write some documentation for it :)

@Swop
Copy link
Owner

Swop commented Feb 4, 2013

Yes you're right, it's planned ;-)

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

2 participants