Giter VIP home page Giter VIP logo

cakebox's Introduction

Build Status Documentation Status Total Downloads Software License

Cakebox

Framework agnostic virtual PHP development environment.

Abandoned repository

What do you get?

A 64-bit virtual machine running Ubuntu with PHP and a lot of useful software and features.

Documentation found here.

Requirements

  • VirtualBox 4.0 or higher
  • Vagrant 1.6.0 or higher
  • a machine with at least 4GB of memory and 2 Cores

Windows users:

Windows 10 users must additionally:

  • use latest VirtualBox and Vagrant
  • set VBoxManage.exe compatibility mode to Windows 8
  • apply this NDIS6 solution to fix VERR_INTNET_FLT_IF_NOT_FOUND error

Installation

Please note: that the initial download of the (~2GB) box image will take some time.

git clone https://github.com/alt3/cakebox.git
cd cakebox
cp Cakebox.yaml.default Cakebox.yaml
vagrant plugin install vagrant-vbguest
vagrant up

After the installation has completed you may either:

  1. log in to your box (now running Ubuntu 14.04 and PHP 5.6)
  2. upgrade your box to Ubuntu 16.04 LTS and PHP 7.1 or PHP 7.2 by running:
vagrant ssh
/cakebox/bash/ubuntu-16.sh
exit
vagrant reload

Additional information

Once provisioning has completed you are ready to:

Command Line Provisioning

Create fully preconfigured applications, databases and virtual hosts directly from the command line. Currently supports:

  • CakePHP 2/3
  • Laravel 5
  • Git
  • Composer
# Fresh preconfigured PHP framework applications
$ cakebox application add mycake3.app
$ cakebox application add mycake2.app --majorversion 2
$ cakebox application add mylaravel.app --framework laravel

# Git or Composer applications (both public and private)
$ cakebox application add mypublic.app --source http://github.com/your-name/repository
$ cakebox application add myprivate.app --source [email protected]:your-name/repository.git
$ cakebox application add myyii.app --source yiisoft/yii2-app-basic

# Databases and virtual hosts
$ cakebox database add holiday2015
$ cakebox vhost add idea.com /var/www/some-idea

Management Dashboard

Comes with a dashboard for your convenience.

Cakebox Dashboard

cakebox's People

Contributors

acyphus avatar bravo-kernel avatar ceeram avatar dereuromark avatar fuchigam1 avatar hasen avatar modicrumb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cakebox's Issues

Display cakebox hostname instead of ip-address in post-up-message

It would be charming if the vagrant post-up-message would show the user specified hostname instead of the ip-address. Could be done by e.g. checking if the host is ping'able during vagrant up.

==> default: Your box is ready and waiting.
==> default:
==> default: => Login to your Dashboard by browsing to http://pingable-hostname
==> default: => Login to your virtual machine by running: vagrant ssh

change debug to development

Currently cakebox can be provisioned with debug set to true. This will enable debug in console application. Composer install however is done with --no-dev, meaning that autoloading for tests and fixtures is never loaded.
I suggest to change debug config name to something like develop: true/false
If develop is true, console debug level will be set to true, composer install will be done without --no-dev, so that autoloading for autoload-dev will also be generated.
Additionally we can move things like bake and debug_kit to required-dev, so that they wont be installed and included in autoloading when installing with develop: false

Synced folder crashes `vagrant up` on Ubuntu 14.04

Running vagrant up throws an error:

Full Vagrant log available at https://gist.github.com/ceeram/411c2d5bc4eae0c4cb0a

Error line: https://gist.github.com/ceeram/411c2d5bc4eae0c4cb0a#file-gistfile1-txt-L45

Extend cakebox-intaller with box-image updates

A box-maintenance provisioner (bash script) needs to be included so updates to pre-installed box software like phpcs and the globale CakePHP codesniffer can be updated when needed.

Usecase examples:

  • updating version of global cakephp-codesniffer
  • adding missing PHP/Nginx modules
  • optimizing apt-cache

Note for upgrading

One issue remains when upgrading internally to php7.1 and if using phpmyadmin:

inside /etc/nginx/sites-available/cakebox.phpmyadmin

fastcgi_pass    unix:/var/run/php/php5...-fpm.sock;

the php version needs to be replaced to work:

php7.1-fpm.sock

Otherwise http://cakebox.phpmyadmin will not work out of the box then.
Maybe this can be added to the upgrade script?

exception is caused by a lack of memory

With the cakebox running on a rather fast and new laptop (Ubuntu 15) I always get this after a while:

The following exception is caused by a lack of memory and not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details

PHP Fatal error:  Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///opt/composer/composer.phar/vendor/symfony/console/Application.php:954

Is there any default we can adjust so this does not happen with composer?

Update to 16?

Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-24-generic x86_64)

...

New release '16.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Any way to have 16 by default already?

--source option customizations

Hi there,

I'd like to be able to use the --source option while still be able to run some customizations on the files. Is this possible? Or perhaps I can add in my own commands to the cakebox script?

Thanks

Unable to mount VirtualBox Shared Folders

We are using virtual box 6.1 and vagrant 2.2.7

We are using windows 10.

When we follow the install instructions, when trying to mount the shared folders, we recieve this error.

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o dmode=777,fmode=766,uid=900,gid=900 cakebox /cakebox

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

unable to vagrant up, download fail

While attempt to download, it will fail and below is the log

vagrant version: 2.0.4
vboxmanage --version: 5.2.10r122088

cakebox git:(caketest) vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'cakebox' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'cakebox' (v0) for provider: virtualbox
default: Downloading: https://alt3-aee.kxcdn.com/cakebox.box
==> default: Box download is resuming from prior download progress
/opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/downloader.rb:114:in block in download!': undefined method split' for nil:NilClass (NoMethodError)
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/subprocess.rb:191:in block in execute' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/subprocess.rb:180:in each'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/subprocess.rb:180:in execute' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/subprocess.rb:22:in execute'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/downloader.rb:285:in block in execute_curl' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/busy.rb:19:in busy'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/downloader.rb:284:in execute_curl' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/downloader.rb:185:in download!'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/box_add.rb:463:in download' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/box_add.rb:338:in block in box_add'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/box_add.rb:330:in each' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/box_add.rb:330:in box_add'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/box_add.rb:146:in add_direct' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/box_add.rb:120:in call'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/warden.rb:34:in call' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builder.rb:116:in call'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/runner.rb:66:in block in run' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/busy.rb:19:in busy'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/runner.rb:66:in run' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/handle_box.rb:82:in handle_box'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/handle_box.rb:42:in block in call' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/handle_box.rb:36:in synchronize'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/handle_box.rb:36:in call' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/warden.rb:34:in call'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/warden.rb:95:in block in finalize_action' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/warden.rb:34:in call'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/runner.rb:66:in block in run'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/runner.rb:66:in run'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builtin/call.rb:53:in call' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/warden.rb:34:in call'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/plugins/providers/virtualbox/action/check_virtualbox.rb:26:in call' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/warden.rb:34:in call'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/runner.rb:66:in block in run'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/action/runner.rb:66:in run'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/machine.rb:227:in action_raw' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/machine.rb:202:in block in action'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/environment.rb:598:in lock' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/machine.rb:188:in call'
from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/machine.rb:188:in action' from /opt/vagrant/embedded/gems/2.0.4/gems/vagrant-2.0.4/lib/vagrant/batch_action.rb:82:in block (2 levels) in run'
➜ cakebox git:(caketest)

Missing PHP extension or unmet dependency

When trying to run any cakebox commands, I get the following error

Exception: Database driver Cake\Database\Driver\Mysql cannot be used due to a missing PHP extension or unmet dependency in [/cakebox/console/vendor/cakephp/cakephp/src/Database/Connection.php, line 173]

This is the first site I've tried to create using Cakebox, so I'm a bit of a novice. Any help would be greatly appreciated.

Cakebox booting slow when host not connected in the Internet

Don't know if it is desired behavior but when I start the VM and I'm not connected to the Internet, I've seen like a dozen or more of these default: Warning: Connection timeout. Retrying.... At some point it reaches the "maximum number of tries" but Cakebox always ends up running.

Is it possible for the box to be configured to try to connect to the Internet once the boot is completed, so even if Internet is not available I'll be able to develop my apps quickly? We could add a feature in cakebox-console to "Try to connect to the Internet", something like that.

Shared folders not mounting (VBoxGuestAdditions)

When starting my box my shared folders are not mounting giving me the following error

==> default: Mounting shared folders...
    default: /vagrant => C:/Git/cakebox/.vagrant
Vagrant::Errors::VirtualBoxMountFailed: Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attemped was:

set -e
mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3`,dmode=777,fmode=766 vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant`,dmode=777,fmode=766 vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

Site can't be reached

I've followed the instructions at http://cakebox.readthedocs.io/en/latest/tutorials/creating-your-first-website/ to create my first website, and according to terminal the Installation completed successfully
However, when I navigate to the url in chrome I get a 'This site can’t be reached' error.

The cakebox dashboard loads fine, and the app appears in it under 'Applications', but when I click through from there I get the same error.

Any help would be greatly appreciated.

store salt to regenerate box with same salt.php config file

Currently fresh installs will generate unique salt and store in console/config/salt.php
salt is used for hashing passwords as well, so being able to reuse the salt when recreating the box is especially important once console will depend on a database with hashed passwords.

Make catchall a php site

Opens the door to:

  • Cake showcasing
  • /logs page
  • integrating Shells/Tasks with page (single app for page and console)
  • etc

https://alt3-aee.kxcdn.com/cakebox.box unavailable.

Hey folks,

I got this during vagrant up:


Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'cakebox' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'cakebox' (v0) for provider: virtualbox
    default: Downloading: https://alt3-aee.kxcdn.com/cakebox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 404 Not Found

Is there a way to replace the box or use a mirror?

Thanks for the help!

Error installing squizlabs code_sniffer

Fresh install of latest cakebox version on Vagrant 2.0.0 (also tried 1.9.8) under VirtualBox 5.1.30 on Windows 10 (with VBOXMANAGE set with Win8 compatibility) and VirtualFile set to 2048M RAM

Always get an error creating a cake3 application:-

2017-10-29 23:45:44 Debug:   =>   - Installing squizlDownloading (100%)         : Downloading (connecting...)
2017-10-29 23:45:44 Debug:   =>   [ErrorException]
2017-10-29 23:45:44 Debug:   =>   copy(/home/vagrant/.composer/cache/files/squizlabs/php_codesniffer/ed88e1fd
2017-10-29 23:45:44 Debug:   =>   c0ef8619f54c3205e01909156407e6a7.zip): failed to open stream: Permission de
2017-10-29 23:45:44 Debug:   =>   nied
2017-10-29 23:45:44 Debug:   => create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-U
RL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<packag
e>] [<directory>] [<version>]
2017-10-29 23:45:44 Error: * Shelled command exited with non-zero exit code `1`
2017-10-29 23:45:44 Error: Installation failed: Error composer installing.
Shell command as root:`sudo mkdir /home/vagrant/Apps/cake3.app 2>&1`
* Shelled command completed successfully
Shell command as root:`sudo chown vagrant:vagrant /home/vagrant/Apps/cake3.app -R 2>&1`
* Shelled command completed successfully
2017-10-29 23:45:44 Warning: Error installing application sources.
Error installing application sources.
See /var/log/cakephp/cakebox.cli.log for details.

I've remove vagrant machine and retried with the default Ubuntu14 install and also upgraded the box to Ubuntu16 with the script - it's always the same...

Any ideas? Workarounds?

Small improvement: client_max_body_size >> 2MB

the default client_max_body_size is way too low for any development.

It would be nice if we could ship with

client_max_body_size 50M;

inside each generated sites-available conf file inside server{} block

Set UTC timezone in global php.ini?

Currently not set, should we set follow best practices and set it to UTC?

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

phpMyAdmin config issue

PhpMyAdmin have been installed by following the steps, and I can log in at http://cakebox.phpmyadmin/.

When logged in, I can view databases and tables, but when trying to view a table, I get this error:
#1146 - Table 'phpmyadmin.pma_table_uiprefs' doesn't exist

At phpMyAdmin home (startpage) I see the following notices/errors:
Error: The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.
Error: Connection for controluser as defined in your configuration failed.
Notice: Your PHP MySQL library version 5.5.41 differs from your MySQL server version 5.6.22. This may cause unpredictable behavior.
Error: Connection for controluser as defined in your configuration failed.

$cfg['Servers'][$i]['pmadb'] OK

Following $cfg is not OK:

  • $cfg['Servers'][$i]['pmadb']
  • $cfg['Servers'][$i]['relation']
  • $cfg['Servers'][$i]['table_info']
  • $cfg['Servers'][$i]['table_coords']
  • $cfg['Servers'][$i]['pdf_pages']
  • $cfg['Servers'][$i]['column_info']
  • $cfg['Servers'][$i]['bookmarktable']
  • $cfg['Servers'][$i]['history']
  • $cfg['Servers'][$i]['designer_coords']
  • $cfg['Servers'][$i]['recent']
  • $cfg['Servers'][$i]['table_uiprefs']
  • $cfg['Servers'][$i]['tracking']
  • $cfg['Servers'][$i]['userconfig']

I have installed it on work computer and personal computer. Same issue. Setup on both machines/computer are similar.

My setup (personal computer):

  • Windows 10
  • VB 5.0.36
  • Vagrant 1.9.4
  • Cakebox

For now it seems like phpMyAdmin don't work out of the box. I will try to do "quick steps to setup advanced features" to see how it goes.

Quick steps to setup advanced features:

  • Create the needed tables with the examples/create_tables.sql.
  • Create a pma user and give access to these tables.
  • Enable advanced features in configuration file (config.inc.php), for example by starting from config.sample.inc.php.
  • Re-login to phpMyAdmin to load the updated configuration file.

box url was 404 not found

box url is 404 not found.
https://alt3-aee.kxcdn.com/cakebox.box

☁  cakebox [dev] vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'cakebox' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'cakebox' (v0) for provider: virtualbox
    default: Downloading: https://alt3-aee.kxcdn.com/cakebox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 503 Service Temporarily Unavailable

Upgrade - i18n error and bad gateway

Thought I'd share my experience from upgrading cakebox/vb a couple of times.

I just upgraded to Ubuntu 16.04, following the instruction inside vagrant. Upgrading VB itself went fine, but I got bad geteway on all virtual domains (vhost). Also when trying to run cakebox commands, I get exeption, not finding class Locale in vendor/cakephp/cakephp/i18n/i18n.php line 244.

Bad geteway was an issue when I was upgrading/updating cakebox last week as well.

In both cases I have git pull locally in cakebox and cakebox update self to see if the error could be fixed.

My setup:

  • Windows 10
  • VB 5.0.18
  • Vagrant 1.9.4

I have restored my box with vagrant snapshop pop. Now most works fine, but dashboard (both http://10.33.10.10 and http://cakebox) still gives a bad gateway.

Error reading response length from authentication socket

The following code in check-ssh-agent.sh:

# Show loaded keys
echo "SSH Forwarded keys:"
OUTPUT=$(ssh-add -l 2>&1)
EXITCODE=$?
echo "=> $OUTPUT"

includes an unhandled error with message from ssh-add -l command:

SSH Forwarded keys:
=> Error reading response length from authentication socket.

Trying to install laravel5

I am getting
image 1
That error.
image 2
It also says that I have a fatal error that the fork failed.

I was able to get cakephp 3 installed but also wanted to use laravel.

TLD should not be .app but .local

Since 2014 .app is an officially allowed and used TLD,
as such all cakebox defaults for local dev should be .local, so e.g. mycake3.local.

SSL error when trying to install cakebox

In the git bash I get to the vagrant up command and get the following ssl error, how do I fix this so I can install. Thanks.

Here's the error:

Welcome to Git (version 1.9.5-preview20150319)

Run 'git help git' to display the help index.
Run 'git help ' to display help for specific commands.

Matt@MATT-PC ~
$ git clone https://github.com/alt3/cakebox.git
Cloning into 'cakebox'...
remote: Counting objects: 1706, done.
Receiving objects: 95% emote: Total 1706 (delta 0), reused 0 (delta 0), pack-re
R
Receiving objects: 100% (1706/1706), 808.00 KiB | 595.00 KiB/s, done.
Resolving deltas: 100% (1072/1072), done.
Checking connectivity... done.

Matt@MATT-PC ~
$ cd cakebox

Matt@MATT-PC ~/cakebox (dev)
$ cp Cakebox.yaml.default Cakebox.yaml

Matt@MATT-PC ~/cakebox (dev)
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'cakebox' could not be found. Attempting to find and install...

default: Box Provider: virtualbox
default: Box Version: >= 0

==> default: Adding box 'cakebox' (v0) for provider: virtualbox
default: Downloading: https://alt3-aee.kxcdn.com/cakebox.box
default: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.

Matt@MATT-PC ~/cakebox (dev)
$

Small issue with CakeBoxInfo

Notice (8): A non well formed numeric value encountered [APP/Lib/CakeboxInfo.php, line 305]

Code Context

$stdout = '693
'

So it should probably remove whitespace by using trim() or sth.

Remote Cakebox.yaml

Could just work as is but needs testing

YAML.parse(open('https://link_to_github_hosted/file.yaml'))
  • Should not require (yet another) local file so maybe:
    • ask for user input during vagrant up/reload
    • parsing an env variable

cakebox.yaml with bitbucket

I am using the cakebox.yaml file to create an app with the source from a private repo on bitbucket. The examples show how to add a private repo from github but I cannot get this to work with bitbucket. Am I doing something wrong or is it not currently supported?

Thanks

cakebox application add error on linux Mint

Usually

cakebox application add my-project.local 

works fine

but on linux mint and a fresh install I got

Shell command as root:`sudo mkdir /home/vagrant/Apps/releases.local 2>&1`
* Shelled command completed successfully
Shell command as root:`sudo chown vagrant:vagrant /home/vagrant/Apps/releases.local -R 2>&1`
* Shelled command completed successfully
Error installing application sources.

and

"@message":"Error installing application sources."

inside that log file.

Virtual box 5.1

I installed version 5.1 of virtual box and cakebox was unable to start when performing vagrant up

Vagrant provisioning fails when called from subfolder

When calling vagrant provisioning from a subfolder, errors occur like:

$ vagrant reload --provision
There are errors in the configuration of this machine. Please fix
the following errors and try again:

File provisioner:
* File upload source file c:/Temp/cakebox-dev/cakebox-dev/.cakebox/console/.cakebox/aliases must exist
* File upload source file c:/Temp/cakebox-dev/cakebox-dev/.cakebox/console/Cakebox.yaml must exist

Fatal error when using --majorversion 2

When I want to add a CakePHP 2 application I find this error in the log:

fatal: Remote branch 2.7 not found in upstream origin

I think cakebox depends on that version branch/tag but the CakePHP maintainers renamed it or something.

NoMethodError when i try to install phpmyadmin

/Users/ricardo/cakebox/.cakebox/Vagrantfile.rb:264:in block in configure': undefined methodkeys' for ["-apt_packages", ["phpmyadmin"]]:Array (NoMethodError)

vhosts:

  • url: cakebox.phpmyadmin
    webroot: /usr/share/phpmyadmin

databases:

extra:
-apt_packages:
- phpmyadmin

-scripts:

Error installing application sources.

When running cakebox application add mycake3.app , I get the error Error installing application sources.

I've checked the error log, and it seems to be a permissions problem:

[ErrorException] copy(/home/vagrant/.composer/cache/files/squizlabs/php_codesniffer/21fc9024bccaa50ebc7c3aa8aebb590119cbfa32.zip): failed to open stream: Permission denied","@tags":["cli.cakebox"],"@type":"cakephp"}

I've tried increasing the memory on the box, but no luck.

Any help would be greatly appreciated.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.