Pages: 1 [2] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 4 post(s) |
Vaerah Vahrokha
Vahrokh Consulting
5270
|
Posted - 2014.03.12 00:07:00 -
[31] - Quote
Devilen wrote:Wow go away for a weekend come back and many more posts!
...
I can go into detail with how I deploy to a site with a git repo if you would like but it is a bit long so I could just post a link for you. Now does your files have set permissions on some of them or they have to be owned by set users for it to work properly? If so you might have to make some git hooks to apply the permissions and ownership but that is not hard to do at all.
Hello,
I would not mind if you posted that link.
About the file permissions, I need files to be owned by different users in the www-data group. The directories some times have 755 flags, other times 775 other times 750 or 770. There are also a sizable amount of soft links.
Auditing | Collateral holding and insurance | Consulting | PLEX for Good Charity
Twitter channel |
Devilen
Killing is Business Get Off My Lawn
24
|
Posted - 2014.03.12 16:59:00 -
[32] - Quote
This is the one I use for bitbucket but you could adapt it to any other type of Git server.
http://f6design.com/journal/2013/11/19/automated-git-deployments-from-bitbucket/
As for the permissions and users you can simply put in the git post hook after the files been copied over to the directory you have it set the permissions and ownerships which is what I do. |
Black Madness
Natural Born Builders New Eden Gambling Alliance
13
|
Posted - 2014.03.13 07:26:00 -
[33] - Quote
CircleCI, great tool for Continuous Integration.
We have multiple branches, with master being mapped on test instance, and release one on production.
Huge test suite, pushing on master triggers circleci to update the testing branch, while pushing on release does the same for release branch.
We use Google AppEngine, but you can make the same for any target by using - say - Fabric.
Docker might be an interesting tool, too.
P.s.: I am in a hurry, feel free to ask if you want more details.
Cheers, BM www.eve-gamblers.org
-= Real PRO use isk =-
Eve Forum thread:-áhttp://goo.gl/q1rpFy |
Lors Dornick
Kallisti Industries Solar Assault Fleet
1030
|
Posted - 2014.03.13 13:47:00 -
[34] - Quote
Steve Ronuken wrote:Lors Dornick wrote:Steve Ronuken wrote: Same reason for using MySQL over Postgres.
I prefer PHP and Postgres, but that's mainly because I'm a diehard BSD head and I loathe anything connected to that cheap Finnish copy of a real OS that is called Linux. Or maybe it's just that I wanna feel special ;) I'm using Postgres in a few places myself. Mostly because mysql lacks window functions. Writing the sql is a little more painful though, due to the need for quoting all the identifiers, when they're case sensitive. For me it was stored procedures.
Vote for Fuzzy Steve! https://forums.eveonline.com/default.aspx?g=posts&m=4236322
|
Antihrist Pripravnik
Scorpion Road Industry Devil Divided By Zero
194
|
Posted - 2014.03.16 03:52:00 -
[35] - Quote
Alternatively, you don't need to install Git on your server at all. All you need to do is to use a deployment service that does this for you through FTP/SFTP/SSH (depending on your choice). Deployment services usually have post deployment scripts as well.
I'll list two that I have been using: NOTE: I will report this forum post to moderators myself, since I don't know if I'm allowed to mention 3rd party services here. If forum moderators find that this post breaks the forum rules, please do not hesitate to take it down.
- http://beanstalkapp.com/ : hosts repositories and has a deployment tool integrated. It does not have free account.
- http://www.deployhq.com/ : Free for one project and up to 10 deployments per day. Note that it's free for one project... you can deploy the project to multiple servers/locations on your server (useful for dev/staging servers). It has connections with GitHub and BitBucket and even supports automatic deployments (deployments triggered when "git push" finishes).
Personally, I'm using BitBucket + DeployHQ combo. - |
Vaerah Vahrokha
Vahrokh Consulting
5277
|
Posted - 2014.03.17 19:24:00 -
[36] - Quote
For sake of completeness, here's what I ended up doing:
1) Develop on one or more PCs. Netbeans automatically saves changes on the server via FTP.
2) The saved files end in a development webserver root (or a subdirectory of that) which is also the working directory of a Git repo. Therefore I have immediate feedback of what I am doing. In case of multiple developers, each will work on a well separate branch.
3) Once satisfied with the results in the dev website, I commit the sources to the repo.
4) I have written a nice rsync script that uploads the changes to production, with all sorts of checks, exclusions and dry run option. I have checked some of the suggested deployment solutions but besides being aimed at large scale deployment (whereas I only plan to setup 1 site) they rely on "hotswapping" contents by working with symbolic linked directories. But some of the components I use refuse to work with symlinks.
5) In case files are created on production (i.e. thumbnails and uploaded files), another rsync script will pull those additions in the development working directory.
So far the whole system is working well and doing what I needed. And it's simple, fast and does not need anything particular being installed.
Auditing | Collateral holding and insurance | Consulting | PLEX for Good Charity
Twitter channel |
Devilen
Killing is Business Get Off My Lawn
24
|
Posted - 2014.03.17 20:48:00 -
[37] - Quote
@Antihrist Pripravnik - While I would agree you don't have to but for someone who doesn't have the ability to pay for stuff or doesn't want to pay for it and is willing to do some dirty work to get it setup.
@Vaerah Vahrokha - I am happy to hear! Thats always a good thing to get it how you want it and it is useable as thats all that matters!
Good luck to everyone in the future with their projects and jobs! |
Zifrian
Licentia Ex Vereor Black Core Alliance
1420
|
Posted - 2014.03.18 01:57:00 -
[38] - Quote
Threads like this confirm I will never build a website...ever...LOL
Best of luck! Looks like you have some good advice. GÇ£Any fool can criticize, condemn, and complain - and most fools do. GÇ¥ - Dale Carnegie
Maximze your Industry Potential! - Download EVE Isk per Hour! |
Aineko Macx
Royal Amarr Institute Amarr Empire
291
|
Posted - 2014.03.23 10:05:00 -
[39] - Quote
For learning GIT the obligatory place to start at is: http://git-scm.com/documentation I recommend you get accustomed to using GIT from the CLI, as I have not seen a good IDE plugin yet tbh.
I develop my tools in a Ubuntu VM running inside VirtualBox under Windows, using NetBeans as IDE. This way I can develop in the same environment as my server. I use HeidiSQL for the DB interaction.
At work we have been using GIT in the common master+development+feature branch fashion and Jenkins+Maven for CI, but that's java tech |
Karbowiak
4M-CORP Black Eclipse.
178
|
Posted - 2014.03.25 05:38:00 -
[40] - Quote
If you do end up working with PHP, and are running into some performance issues with PHP itself (not the database or anything else), then have a look at HHVM.
It's a JIT for PHP, which is developed by Facebook, it's what powers zKillboard.com. We went from ~120ms avg. page load time, to ~20ms avg. page load time, just by switching. So if you're CPU bound on the PHP code itself, HHVM can more than likely help you out in that regard.
That is, if you don't use stuff like MongoDB or PostgreSQL, Postgre IS supported by a 3rd party plugin, but mongoDB is still not supported. So, there's that |
|
|
|
|
Pages: 1 [2] :: one page |
First page | Previous page | Next page | Last page |