[mezzanine-users] Fabric Settings Path, PROJECT_NAME trouble, Repository not found
Getting closer with deploying by using Fabric. I think my problem is the PROJECT_NAME. Getting this error after putting Fab All (other things seem to work now): $ hg clone /mezzanine_app/project - [107.170.215.138] out: abort: repository /mezzanine_app/project not found! Fatal error: run() encountered an error (return code 255) while executing 'hg clone /mezzanine_app/project' Repository not found...hm I guess I don't understand why it keeps tacking on my PROJECT_NAME + Project to the file path. Printing the working directory (where manage.py and local_settings are) gives me : /opt/mezzanine_env/mezzanine_app What should I be putting in PROJECT_NAME instead? How can I let FABRIC find the repository? Any clues where I might be going wrong? My FABRIC Settings: *FABRIC = {* * SSH_USER: kpennell, # SSH username* * SSH_PASS: pass, # SSH password (consider key-based auth$* * SSH_KEY_PATH: /root/.ssh/id_rsa.pub, # Local path to SSH ke$* * HOSTS: [107.170.215.138], # List of hosts to deploy to* * VIRTUALENV_HOME: , # Absolute remote path for virtualenvs (I assumed I could leave this blank)* * PROJECT_NAME: mezzanine_app, # Unique identifier for project (this is the folder where my mezzanine stuff is)* * REQUIREMENTS_PATH: requirements.txt, # Path to pip requireme$* * GUNICORN_PORT: 8000, # Port gunicorn will listen on* * LOCALE: en_US.UTF-8, # Should end with .UTF-8* * LIVE_HOSTNAME: www.ahalearning.co, # Host for public site.* * REPO_URL: , # Git or Mercurial remote repo URL for the proje$ Can this be blank?* * DB_PASS: pass, # Live database password* * ADMIN_PASS: pass, # Live admin user password* * }* -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Fabric Settings Path, PROJECT_NAME trouble, Repository not found
I think you need to set the REPO_URL, otherwise it has no way to get the project onto the remote server. On Thu, Apr 10, 2014 at 11:22 AM, Kyle Pennell kpenn...@gmail.com wrote: Getting closer with deploying by using Fabric. I think my problem is the PROJECT_NAME. Getting this error after putting Fab All (other things seem to work now): $ hg clone /mezzanine_app/project - [107.170.215.138] out: abort: repository /mezzanine_app/project not found! Fatal error: run() encountered an error (return code 255) while executing 'hg clone /mezzanine_app/project' Repository not found...hm I guess I don't understand why it keeps tacking on my PROJECT_NAME + Project to the file path. Printing the working directory (where manage.py and local_settings are) gives me : /opt/mezzanine_env/mezzanine_app What should I be putting in PROJECT_NAME instead? How can I let FABRIC find the repository? Any clues where I might be going wrong? My FABRIC Settings: *FABRIC = {* * SSH_USER: kpennell, # SSH username* * SSH_PASS: pass, # SSH password (consider key-based auth$* * SSH_KEY_PATH: /root/.ssh/id_rsa.pub, # Local path to SSH ke$* * HOSTS: [107.170.215.138], # List of hosts to deploy to* * VIRTUALENV_HOME: , # Absolute remote path for virtualenvs (I assumed I could leave this blank)* * PROJECT_NAME: mezzanine_app, # Unique identifier for project (this is the folder where my mezzanine stuff is)* * REQUIREMENTS_PATH: requirements.txt, # Path to pip requireme$* * GUNICORN_PORT: 8000, # Port gunicorn will listen on* * LOCALE: en_US.UTF-8, # Should end with .UTF-8* * LIVE_HOSTNAME: www.ahalearning.co http://www.ahalearning.co, # Host for public site.* * REPO_URL: , # Git or Mercurial remote repo URL for the proje$ Can this be blank?* * DB_PASS: pass, # Live database password* * ADMIN_PASS: pass, # Live admin user password* * }* -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Fabric Settings Path, PROJECT_NAME trouble, Repository not found
Ah, ok, thanks Josh. In your example the project name of do_test is located at https://joshcar...@bitbucket.org/joshcartme/vanilla_mezz? https://joshcar...@bitbucket.org/joshcartme/vanilla_mezz/do_test ? how does that structure work? I don't get it yet. Getting a similar but different error now: Fatal error: run() encountered an error (return code 255) while executing 'hg clone https://github.com/kpennell/mezz-digitalocean /mezzanine_app/project' 1. I don't understand why it adds project 2. Can see why there is a space. On Thursday, April 10, 2014 1:27:22 PM UTC-5, Josh Cartmell wrote: I think you need to set the REPO_URL, otherwise it has no way to get the project onto the remote server. On Thu, Apr 10, 2014 at 11:22 AM, Kyle Pennell kpen...@gmail.comjavascript: wrote: Getting closer with deploying by using Fabric. I think my problem is the PROJECT_NAME. Getting this error after putting Fab All (other things seem to work now): $ hg clone /mezzanine_app/project - [107.170.215.138] out: abort: repository /mezzanine_app/project not found! Fatal error: run() encountered an error (return code 255) while executing 'hg clone /mezzanine_app/project' Repository not found...hm I guess I don't understand why it keeps tacking on my PROJECT_NAME + Project to the file path. Printing the working directory (where manage.py and local_settings are) gives me : /opt/mezzanine_env/mezzanine_app What should I be putting in PROJECT_NAME instead? How can I let FABRIC find the repository? Any clues where I might be going wrong? My FABRIC Settings: *FABRIC = {* * SSH_USER: kpennell, # SSH username* * SSH_PASS: pass, # SSH password (consider key-based auth$* * SSH_KEY_PATH: /root/.ssh/id_rsa.pub, # Local path to SSH ke$* * HOSTS: [107.170.215.138], # List of hosts to deploy to* * VIRTUALENV_HOME: , # Absolute remote path for virtualenvs (I assumed I could leave this blank)* * PROJECT_NAME: mezzanine_app, # Unique identifier for project (this is the folder where my mezzanine stuff is)* * REQUIREMENTS_PATH: requirements.txt, # Path to pip requireme$* * GUNICORN_PORT: 8000, # Port gunicorn will listen on* * LOCALE: en_US.UTF-8, # Should end with .UTF-8* * LIVE_HOSTNAME: www.ahalearning.co http://www.ahalearning.co, # Host for public site.* * REPO_URL: , # Git or Mercurial remote repo URL for the proje$ Can this be blank?* * DB_PASS: pass, # Live database password* * ADMIN_PASS: pass, # Live admin user password* * }* -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Fabric Settings Path, PROJECT_NAME trouble, Repository not found
I do get the space (I think). It's trying to clone from one to another. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Fabric Settings Path, PROJECT_NAME trouble, Repository not found
I can't stress enough how different your experience would be if you took a step back and read all the fabric documentation, then walked through Mezzanine's fabfile step by step until you understand each of the steps it takes to set up a server with your site deployed on it. It's really just one big sequence of remote commands on your server - install and configure all the things needed, then set up your project from version control, and use it to run the site. Once you empower yourself by understanding each of the steps it takes, you can *easily* debug these problems on your own. This approach requires the most effort from *you* up front, but will ultimately be the most efficient in the long run. What you're doing now, requires almost zero effort from you up front, calls on the effort of *others*, and ultimately does you the greatest injustice in the long run, by not learning how all these things actually work. Sorry if this advice is too blunt, but I think drip feeding you each step is doing you a disservice. On Fri, Apr 11, 2014 at 7:09 AM, Kyle Pennell kpenn...@gmail.com wrote: You get this when you do so: [ahalearning.co] out: You must provide a DEST_DIR [ahalearning.co] out: Usage: virtualenv [OPTIONS] DEST_DIR Sorry for pestering you, Josh. Perhaps someone else in this group has ideas so you don't have to keep trying. On Thursday, April 10, 2014 3:55:45 PM UTC-5, Josh Cartmell wrote: As far as I know the project name can be arbitrary, it can also be left blank and it will be inferred from the repo. Maybe try leaving it blank On Thu, Apr 10, 2014 at 1:51 PM, Kyle Pennell kpen...@gmail.com wrote: $ git clone g...@github.com:kpennell/mezz-digitalocean.git /mezzanine_app/project - [ahalearning.co] out: fatal: could not create leading directories of '/mezzanine_app/project': Permission denied Fatal error: run() encountered an error (return code 128) while executing 'git clone g...@github.com:kpennell/mezz-digitalocean.git /mezzanine_app/project' will have to dig into the permission error. On Thursday, April 10, 2014 3:29:18 PM UTC-5, Kyle Pennell wrote: I do get the space (I think). It's trying to clone from one to another. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.